background preloader

Astuces

Facebook Twitter

350+ Amazing CSS3 Resources – All You’ll Ever Need to Become a CSS3 Master! Knowledge of CSS3 is fast becoming a crucial element of any web designer/developer’s skillset, which means that it’s an excellent time to start learning, if you haven’t already! A solid knowledge of CSS3 has a large market value and will take you a long way towards success, giving you an image of competence and authority. Thankfully, there’s a huge amount of terrific tutorials and resources available – if you can find them. Here you’ll find an amazing ‘ultimate’ toolbox of over 350 of the best tuts and tips out there. Get ready to be amazed! 30 Essential CSS Resources This neat collection was posted on the Carsonified blog back in July – but if you are just digging into CSS3 it’s still a great collection of resources to get started with.

CSS3 Exciting Functions and Features: 30+ Useful Tutorials Noupe is one of my favorite blogs, and this collection of tutorials certainly measures up to the quality of the rest of the blog. CSS3 Examples and Best Practices 47 Amazing CSS Transitions Demos. CSS gradient syntax: comparison of Mozilla and WebKit » Broken Links. Warning This article was written over six months ago, and may contain outdated information.

Update: I wrote this article in 2009. In early 2011 WebKit decided to change their syntax to match that used in Firefox (and the W3C specification). The syntax contained in these articles will be maintained for reasons of backwards-compatibility, but you should use the new syntax for the future. CSS Gradients were originally proposed by the WebKit team in April 2008, modified from the syntax proposed for the Canvas element of HTML5. Since then, however, the CSS WG have discussed a different syntax, and a resolution was passed to add this to the Image Values module.

In this article, which will be split into at least two parts, I’m going to compare the two syntaxes. Throughout both parts, I will be referring to the following demo page; you’ll need to be using Safari 4, Chrome, or Firefox 3.6beta3+ in order to see it working: CSS Gradients comparison: Mozilla & WebKit. Linear gradients Conclusions. Border-radius and -moz-border-radius < CSS. One of the most keenly-anticipated CSS3 properties is border-radius.

Web designers will no longer have to resort to complex table structures using custom-made corner graphics or including arcane JavaScript files in order to produce designs with rounded corners. While Internet Explorer before IE9 doesn't support many (or any) advanced CSS properties, the Mozilla (Firefox and related browsers) and WebKit (Apple's web browser engine used in Safari and Chrome) and Opera have supported them for many years. The vendor prefixes (-moz, -webkit) are now no longer necessary for the latest browser releases as they have all adopted the official CSS3 syntax. 1. Definition and syntax for border-radius As with many CSS properties relating to margins, padding and borders, there are four individual properties - one for each corner of a box element - and one shorthand property. Each of the corner attributes will accept either one or two values.

Here are the CSS and browser-specific attributes in question: Feuilles de style - CSS : Principales applications de la propriété FLOAT/ 38g. Krazy Korners. Pre 2007 Rounded corners with raised borders Rounded corners with inset borders A box with cutout corners Corners to give a serif effect. Corners to give a rounded pillar effect. A box with top and bottom bulges. Information Based on the previous Snazzy Borders but now with a selection of Krazy Korners. Just change the colours as you wish and put these Krazy Korners on you boxes. The grey background has been added to show the transparency of the Krazy Korners. Copyright You may use this method on your personal 'non-profit' web site without seeking my permission. Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay.

If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Sprites CSS : Meurs, découpe d'images, meurs ! Par Dave Shea A l'époque où les jeux vidéos étaient encore amusants (aux heures de gloire du 8-bits), les graphismes étaient par nécessité beaucoup plus simples. Les arrière-plans et les personnages en 2 dimensions étaient dessinés individuellement, point par point, à la façon du pixel-art aujourd'hui renaissant. Des centaines, et plus tard des milliers de petites images appelées « sprites » formaient les briques de la construction visuelle d'un jeu.

La complexité des jeux augmentant, des techniques furent développées pour gérer cette multitude de sprites tout en conservant la fluidité des jeux. Mais qu'est-ce que tout ceci a à voir avec le web ? Tout ce qui est ancien trouve un jour ou l'autre un nouveau souffle, et tandis que l'essor des jeux en 3D rendait les grilles de sprites obsolètes, l'émergence simultanée des appareils mobiles, offrant des capacités de jeu en 2D, les a remises en vogue. Comment fonctionnent les sprites CSS ? Commençons avec l'image maîtresse elle-même. Survols. Un effet de gradient en CSS3. Les effets de gradients sont utilisé dans les web-design depuis plusieurs années, jusqu'à aujourd'hui le seul moyen était de faire des images.

Mais avec l'avénement du CSS3, cela pourrait bien changer, je vais vous présenter une méthode fonctionnelle avec tous les navigateurs moderne : Chrome, Safari, Firefox, IE8. Hélas Opera ne gère pas encore cette fonctionnalité, mais qui sait... Pour les moteurs WebKit et Firefox Voici le code pour la div juste que dessus : margin:10px auto; width:400px; height:80px; background: -webkit-gradient(linear, left top, left bottom, from(#FF0), to(#0FF)); background: -moz-linear-gradient(top,#FF0,#0FF); background:blue; Il est très facile de faire un gradient du haut vers le bas ou de la gauche vers la droite.

Une amélioration à cet exemple Il est possible de faire un gradient avec des effets qui varient en fonction de la position sur la div. Pour Internet Explorer 7 et 8 Par contre pour IE, ca se gâte un peu. Ressources. Overriding The Default Text Selection Color With CSS. One of those cool CSS3 declarations that you can use today is ::selection, which overrides your browser-level or system-level text highlight color with a color of your choosing. At the time of this writing, only Safari and Firefox are supporting this, and both in slightly different ways.

Fortunately, this can be thought of as one of those "forward-enhancement" techniques. It's a nice touch for those using modern browsers, but it just gets ignored in other browsers and it's not a big deal. Here is the rub: Within the selection selector, background is the only property that works. What you CAN do for some extra flair, is change the selection color for different paragraphs or different sections of the page. All I did was use different selection color for paragraphs with different classes: Share On. 53 Techniques très utiles en CSS. CSS is important. And it is being used more and more often. Cascading Style Sheets offer many advantages you don’t have in table-layouts - and first of all a strict separation between layout, or design of the page, and the information, presented on the page. Thus the design of pages can be easily changed, just replacing a css-file with another one. Isn’t it great?

CSS is important. Over the last few years web-developers have written many articles about CSS and developed many useful techniques, which can save you a lot of time - of course, if you are able to find them in time. Let’s take a look at 53 CSS-based techniques here at Smashing Mag you should always have ready to hand if you develop web-sites. 1. 2. 3. 4. 5 Powerful Tips And Tricks For Print Style Sheets 5.

Generated content was first introduced in the CSS2 specification. 7. 8. 9. 10. Stephen Shaw introduces a technique for perfect horizontal and vertical centering in CSS, at any width or height. 11. 12. 13. 14. 15. 16. 17. 18.