background preloader

Css3

Facebook Twitter

Les 30 sélecteurs CSS à connaître absolument. Tomsyweb.com Buy this domain The owner of tomsyweb.com is offering it for sale for an asking price of 345 GBP! Related Searches This page provided to the domain owner free by Sedo's Domain Parking. Disclaimer: Domain owner and Sedo maintain no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo or domain owner and does not constitute or imply its association, endorsement or recommendation.

Les Media Queries CSS3. La spécification CSS3 Media Queries définit les techniques pour l'application de feuilles de styles en fonction des périphériques de consultation utilisés pour du HTML. On nomme également cette pratique Responsive Web Design, pour dénoter qu'il s'agit d'adapter dynamiquement le design à l'aide de CSS. Ces bonnes pratiques permettent d'exploiter encore plus les avantages de la séparation du contenu et de la présentation : l'intérêt est de pouvoir satisfaire des contraintes de dimensions, de résolutions et d'autres critères variés pour améliorer l'apparence graphique et la lisibilité (voire l'utilisabilité) d'un site web. Les plateformes exotiques sont concernées en premier lieu : navigateurs mobiles et tablettes, écrans à faibles résolutions, impression, tv, synthèses vocales, plages braille, etc. Approche historique Avec CSS2 et HTML4, il était déjà possible de spécifier un média de destination pour l'application d'une ou plusieurs feuilles de style.

<! Screen Écrans handheld print Impression. CSS Sliding Door using only 1 image. Before I know about this technique, I was using different images for each of the button I needed in a navigation bar. I found that it is not user friendly and also need more CSS coding. Besides, it is increasing the processing time and bandwidth in loading a site. In this tutorial, I will show you how to code the navigation bar using only 1 image. I will not cover the image creation part because I think you should know how to do that after follow few of my tutorials in the past. The Image I will not show how to create this but I will let you guys download the psd file as a reference. Before we start, head over and see what we are going to achieve from this tutorial. Concept The concept of the sliding door is to use a background image for the buttons in a navigation menu. Now, I add in a <span> for each of the link to hold the left hand side of the background image. 1.

We need to make list-style as none because no image for any list within it. 4. Compatibality, Conclusion and Download.

Typographie

The Elements of Typographic Style Applied to the Web – a practical guide to web typography. Getting Started - Google Web Fonts. This guide explains how to use the Google Fonts API to add fonts to your web pages. You don't need to do any programming; all you have to do is add a special stylesheet link to your HTML document, then refer to the font in a CSS style. A quick example Here's an example. Copy and paste the following HTML into a file: Then open the file in a modern web browser.

Making the Web Beautiful! That sentence is ordinary text, so you can change how it looks by using CSS. You should now see a drop shadow under the text: And that's only the beginning of what you can do with the Fonts API and CSS. Overview You can start using the Google Fonts API in just two steps: Add a stylesheet link to request the desired web font(s): Style an element with the requested web font, either in a stylesheet: or with an inline style on the element itself: For a list of fonts you can use, see Google Fonts. Specifying font families and styles in a stylesheet URL For example, to request the Inconsolata font: For example: Lettrine en CSS3 - CSS3. Il était un temps où les ressources typographiques du HTML étaient limitées. Très limitées. Les pages HTML d'antan ne pouvaient embarquer des polices comme de vulgaires fichiers média.

De ce fait, les webmestres devaient se contenter de ce qu’il y avait à bord de la machine de l’internaute —ces fameuses « web safe fonts »—, celles intégrées aux différents OS (à moins d'acrobaties telles que SiFR ou Flir). Mais ces temps sont révolus grâce à CSS et la règle @font-face. CSS et sa règle @font-face permettant d'afficher n'importe quelle police on se met à rêver. Vous avez l'âme d'un copiste (souvenez-vous de cette scène du film « Le Nom de la rose » où des moines dans le scriptorium écrivaient, debout devant leur écritoire, sur les parchemins) ? Trouvez la police Rendez-vous sur Font Squirrel et trouvez dans la famille Blackletter la plus moche celle qui vous plaît.Téléchargez le kit font-face.

Embarquez la police Mettez la police dans votre espace Web avec la feuille de style du package : Les sprites CSS. Le temps des onmouseover, des images préchargées via JavaScript et des autres joyeusetés héritées des grandes périodes de tag soup est, comme le temps des Elfes de la Terre du Milieu, définitivement révolu : faire des effets de rollover sur des images est tout à fait possible en utilisant uniquement les CSS. La technique consiste à exploiter un fichier unique pour stocker de multiples images, positionnées les unes à côté des autres. Celles-ci seront ensuite appelées dans la feuille de style, et la fenêtre d'affichage sur l'une ou l'autre image sera définie en CSS grâce à la propriété background-position. Attention : la technique exposée dans ce tutoriel est à manier avec précaution car elle peut engendrer des problèmes d'accessibilité (typiquement lorsque les images ne sont pas actives).

Il est donc déconseillé de l'employer pour des images dont le contenu est pertinent (menu par exemple). Les avantages des sprites CSS sont multiples : La technique des sprites CSS Principe (avec sprite) Le top 10 des propriétés CSS3 : compatibilité inter-navigateur. La liste des propriétés qui suivent n’inclue pas toutes les propriétés CSS3 existantes à ce jour. C’est une sélection des 10 propriétés qui vous donneront une bonne base pour vos développements front-end futurs et qui vous permettra de vous faire gagner du temps. Note : à l’exception de @font-face, ni IE6, IE7 ou IE8 ne supportent les propriétés CSS3. IE9 en supporte quelques une, ce sera indiqué lorsque ça sera le cas. @font-face @font-face permet aux polices d’écritures d’être téléchargé du serveur vers le navigateur client afin d’afficher une police donnée de façon correcte.

Comme c’est une propriété qui existe depuis déjà longtemps, c’est une des seules supportée par tous les navigateurs. Il y a un bug connu des anciennes versions de IE et ce même en utilisant des polices en .eot. Il y a aussi un bug avec les navigateurs basés sur Webkit lorsque l’on applique un font-weight bold ou un font-style italic sur la police : ça ne fonctionne pas. La solution complète donne : Opacity Box-shadow. CSS3 Patterns, Explained. Many of you have probably seen my CSS3 patterns gallery. It became very popular throughout the year and it showed many web developers how powerful CSS3 gradients really are.

But how many really understand how these patterns are created? The biggest benefit of CSS-generated backgrounds is that they can be modified directly within the style sheet. This benefit is void if we are just copying and pasting CSS code we don’t understand. We may as well use a data URI instead. Important note In all the examples that follow, I’ll be using gradients without a vendor prefix, for readability and brevity. The syntax described here is the one that browsers currently implement. If you are not yet familiar with CSS gradients, you can read these excellent tutorials by John Allsopp and return here later, as in the rest of the article I assume you already know the CSS gradient basics: The main idea I’m sure most of you can imagine the background this code generates: See this example live See this example live.

Mastering CSS3 gradients. My FT2010 slides and CSSS: My presentation framework. About a week ago, I was in Warsaw, Poland to give my first talk at a big conference, Front Trends 2010. As every first-time speaker, I was extremely nervous and worried that everything would go bad. That my talk would be boring or too basic or that I would just freeze at stage, unable to say a word.

It was a 2-hour talk with a break in between, so I was also terrified that nobody would show up the second hour. Contrary to my fears and insecurities, it went better than I could have ever hoped. At this point, I would like to thank Christian Heilmann for helping me become less nervous before my talk by going through all my slides with me and offering his invaluable advice for every part (I forgot to follow most of it, but it really helped in my attitude).

Many attendees asked me for my slides and presentation framework. I originally ran my presentation in Firefox 4 beta so I was testing mainly in that and Minefield (Firefox’s nightly releases). Introduction to CSS3 Animation. CSS be used for more than the mere transformation of elements; it can also be used to animate them. This new ability in CSS definitely rubs up against JavaScript, which has traditionally been used for animation on web pages. However, animation still falls under the purview of CSS: remember, CSS is about the appearance of elements. That includes animation. The domain of JavaScript is behaviour, which is now defined at a deeper and (in some ways) more basic level. If you want to highlight alternating rows of a table, that’s CSS (the way something looks). The principles of CSS animation are very simple: Set up the default state of the element in CSS.

You can transition most every CSS property you can imagine, and some you likely cannot. Let’s say we have an image with an id of biplane on the page. Img#biplane { width: 500px; height: 415px; border: 20px solid #ffe; box-shadow: 10px 10px 3px rgba(0, 0, 0, 0.3); } img#biplane:hover { transition-duration: 1s; transform: rotate(7deg); That’s it. An Introduction to CSS 3-D Transforms. Ladies and gentlemen, it is the second decade of the third millennium and we are still kicking around the same 2-D interface we got three decades ago. Sure, Apple debuted a few apps for OSX 10.7 that have a couple more 3-D flourishes, and Microsoft has had that Flip 3D for a while. But c’mon – 2011 is right around the corner. That’s Twenty Eleven, folks. Where is our 3-D virtual reality?

By now, we should be zipping around the Metaverse on super-sonic motorbikes. Granted, the capability of rendering complex 3-D environments has been present for years. On the web, there are already several solutions: Flash; three.js in <canvas>; and, eventually, WebGL. Rationale Like a beautiful jewel, 3-D transforms can be dazzling, a true spectacle to behold. An entire application should not take advantage of 3-D transforms. Take, for instance, the Weather App on the iPhone. Flipping from details view to options view via a 3-D transition Also, consider slide shows. Current support The choice is yours. Introduction au CSS3. Cette introduction est destinée à ceux qui souhaitent avoir un aperçu global de ce qu’apporte le CSS3.

Vous y découvrirez un ensemble conséquent de nouveautés, comment utiliser les préfixes propriétaires afin d’en tirer profit dès maintenant et nous discuterons du caractère non-critique de son utilisation. Il s’agit de la suite logique de l’Introduction à l’HTML5, mais elle peut être lue indépendamment. Sommaire Le CSS3 c’est quoi ? Le CSS3 est le nom employé pour caractériser l’ensemble des nouveautés depuis le CSS2.1.

Mais le CSS3 c’est également un ensemble de nouveaux sélecteurs, de nouvelles manières de spécifier les couleurs, une détection des caractéristiques de l’appareil de l’utilisateur, des calculs dans les feuilles de style, des SVG en arrière plan… bref, le CSS3 est un généreux enrichissement des feuilles de style qui, en plus d’être profitable à l’utilisateur, l’est au développeur également ! Exemple pratique : Les bordures arrondies Et vous vous dites : Avec pour CSS : Non. à. CSS3: The Multi Column Layout and How it Will Change Web Design. What is strikingly odd about web design is just how difficult it can be to make a multiple column website.

For the last 15 years we’ve been designing websites like newspapers and magazines, consisting of many columns, and it’s been working out pretty well. The tools we use, however, haven’t changed that much since then as regards layout. For example, in CSS we have to use the float property which can be quite bothersome and even worse, we may even resort to an old status quo: using tables. That’s why the CSS3 Multi Column Module is perhaps one of the most interesting and exciting things that has happened to CSS in a long time. It’s not a gimmick or design trick like box-shadow or animation. Opera (Presto) is pushing ahead with support of this module. What it does Columns are a way of organizing content. So what we’re saying here is that the div will be separated into columns that will be 10em wide. Wide Screen Normal Screen Small Screen This is all automatic! Columns column-count column-width. Timing des animations et des transitions en CSS3. L'arrivée de CSS3 il y a quelques années a pour plusieurs d'entre nous grandement révolutionné la manière dont nous intégrions un site Web.

D'abord, ce furent les propriétés purement graphiques (coins arrondis, ombres portées) qui frayèrent leur chemin jusqu'en mode production. Ces propriétés étaient les mieux supportées des différents navigateurs, et elles étaient facilement imitables sur les plus anciens grâce aux outils à notre disposition (Par exemple: Css3Pie, Selectivizr, Modernizr, etc). Même la tâche redondante consistant à préfixer nos propriétés CSS3 est aujourd'hui facilitée avec Prefixr et PrefixFree.

Aujourd'hui, l'étendue des possibilités auxquelles a accès un intégrateur est assez impressionnante. Et enfin, les propriétés de transition et d'animation sont plutôt bien supportées par l'ensemble des navigateurs modernes, y compris à partir d'Internet Explorer 10. Le sujet des transitions et des animations a déjà été traité par maints auteurs. Quelques Références Transitions:

CSS3 transitions | CSS3 transitions, transforms and animations. Browser Support for CSS transitions How to use transitions If you haven't used transitions before, here's a brief introduction. On the element you want to have animate, add the following CSS: There is a lot of duplication due to vendor prefixes - until the specification if finalised, this will persist. If this bothers you, there are various tools such as CSS Scaffold, LESS, or my preference - SASS, that allow you to define mixins to avoid repetitive code.

Another approach is simply to write the CSS without the prefixes, then use Lea Verou's -prefix-free to add them in at runtime. Something you definitely shouldn't do is to only include the webkit prefix. It's worth noting as well that there isn't an -ms- prefix on these properties. The syntax is pretty straightforward, you specify the property you want to animate, all or border-radius or color or whatever, the time to run, then the transition timing function. Whenever any property changes, then it will animate instead of changing directly. Animation Using CSS Transforms < CSS. 3D Transforms and Animations < CSS. Infinite Animated Photo Wheel < CSS. Bouncing Ball Animation < CSS. Les transformations 3D en CSS3.

CSS3 : Transformations 2D. Hiérarchiser ses titres avec CSS - Utiliser les compteurs CSS pour créer un chapitrage automatique. Quelques idées d’animations simples en CSS3 avec la propriété transition. Transitions CSS3. Slideshow en CSS3. Créer un volet coulissant en CSS3 avec :target et transition. Un design fluide avec trois «colonnes», grâce au positionnement flottant. Des statistiques graphiques grâce aux CSS. Adapter une légende à la largeur de l'image.

La transparence de couleur avec RGBa en CSS3. Les ombrages en CSS3. Créer des coins arrondis en CSS et sans images. CSS3 Shadows. Arrière-plans avec CSS3 Backgrounds. Timing des animations et des transitions en CSS3. Alternative CSS3 pour IE. Ombres avancées avec CSS3 et box-shadow. The Basics of CSS3 Keyframe Animation. PrefixFree: Break Free From CSS Prefix Hell. Avoiding Faux Weights And Styles With Google Web Fonts. Smashing Magazine — For Professional Web Designers and Developers. SVG Fallback, Vertical Rhythm, CSS Project Structure. CSS3 Patterns, Explained.