background preloader

CSS3

Facebook Twitter

CSS3 Buttons | Simple CSS3 framework for creating GitHub style button links. BonBon Buttons - Sweet CSS3 buttons. There was a goal: Create CSS buttons that are sexy looking, really flexible, but with the most minimalistic markup as possible. And voila.. here they are, the BonBon Buttons. Named after the French word for "Candy". So, let's take a tour trough the candy store.

No, wait! Markup I get a real kick out of trying to keep the markup minimal, so I'm really happy with the outcome. You can change the look by adding more classes: <a href="" class="button orange glossy">Label</a> Label Icons Accessibility Addingrole="button" makes it more accessible. Looks I tried to avoid any images but couldn't resist adding a PNG for the noise. A border-radius doesn't always need to be rounded. For the colors HSL values are used. I tried to simulate different materials. The glossy shape is created using an :after element with a gradient background on top. Flexibility Here all the optional class names if you wanna play around with -webkits Inspector or Firebug: Queen Rain There is one thing I'm kinda sad about.

Note. Slide Down Box Menu with jQuery and CSS3. In this tutorial we will create a unique sliding box navigation. The idea is to make a box with the menu item slide out, while a thumbnail pops up. We will also include a submenu box with further links for some of the menu items. The submenu will slide to the left […] View demoDownload source In this tutorial we will create a unique sliding box navigation. The idea is to make a box with the menu item slide out, while a thumbnail pops up. We will be using the jQuery Easing Plugin and some beautiful photos by tibchris. The Markup For the HTML structure we will be using an unordered list where each menu item will contain the main link item and a div element for the submenu: If there is no submenu, the div can simply be left out. The CSS We will start by styling the unordered list: Genrally, we want to remove any default text-decoration and outline for all the link elements in our menu: We are using a background image that creates a glass like effect with a semi-transparent gradient.

P.S. 32 Javascript Alternatives with Pure CSS – Updated | Speckyboy Design Magazine. The pure CSS techniques, outlined in this article, are neither new nor are they ground-breaking. What they do offer is CSS solutions to what would typically and traditionally be associated with Javascript, and as a demonstration that they do exist and could be quite easily used. Having said all that, we are in no way saying that these techniques are in anyway better than there Javascript equivalent, just an optional alternative and as a proof of concept. Throughout this Christmas and New Year week we are taking a look at the most popular and some of the most resourceful articles that we have published in the past year. I promise that in the next couple of days normal service will resume with even higher quality articles, with even more resourceful posts and, of course, some highly inspirational posts. This article was originally published on April the 26th 2010 and entitled 30 Pure CSS Alternatives to Javascript.

CSS Image Map Pure CSS Timeline Valid Non-Javascript Lightbox CSS Bar Charts. The CSS Corner: CSS3 Media Queries - IEBlog. iPad Simulator - alexw.me. Let me tell you what a crazy week it’s been regarding my iPad Simulator A little background I’ve thought about creating the iPad simulator shortly after I bought my iPad. I was fascinated by the UI and wanted to see if I can recreate it.

This isn’t the first online simulator I’ve built, before this, was a Nokia n97 simulator, also built with JS + CSS ( I’ve uploaded the iPad simulator a while ago, started playing with it, adding apps (google maps, safari, photos etc’) , and I was getting 5 hits daily (most of them me from work) Forrst I joined Forrst and decided to share it with the forrsters , and I got amazing feedback.

W3c Israel Some weeks after, I went to a W3C Israel meeting on web app development and after a short hackaton (results of which you can see here and fork on github ) I’ve showed the guys there the iPad simulator among other things. Morning After Twitter I’m glad you like it. Websites and blogs What’s next? Transitions CSS3 - Alsacr?ations. Beaucoup d'intégrateurs en ont rêvé : animer les pages web uniquement à l'aide de styles CSS, sans apport de JavaScript.

Grâce aux dernières évolutions du langage et au module CSS3 Transitions, il est désormais possible de réaliser des transitions basiques à l'aide de CSS dans les navigateurs récents (Safari 4+, Chrome 2+, Firefox 4+, Internet Explorer 10 et Opera 10.6+) La spécification est le document qui définit de manière claire, précise et univoque le langage. Les spécifications des CSS 3 sont découpées en modules. Le module qui nous intéresse est nommé CSS Transition Module. La spécification relative au module est disponible à l'adresse suivante : Remarque : Les moteurs récents implémentent la spécification. Principe de base Le principe de base d'une transition CSS3 est de permettre une transition douce entre l'ancienne valeur et la nouvelle valeur d'une propriété CSS lorsqu'un événement est déclenché : Exemples concrets. Create Spinning, Fading Icons with CSS3 and MooTools. A goal of my latest blog redesign was to practice what I preached a bit more; add a bit more subtle flair.

One of the ways I accomplished that was by using CSS3 animations to change the display of my profile icons (RSS, GitHub, etc.) I didn't want to abandon CSS animations completely though; I added a bit of MooTools to randomize the icon's initial display position and rotation. Let me show you how to use CSS3 and MooTools to create dymanic, rotating elements.

The HTML We'll use the standard, accessible, SEO-friendly HTML for link creation: CSS will make these links pretty. The CSS The first part of the process is using standard CSS to move the text off screen and instead use the icons as background images for the link: Once we've done that time-tested practice, it's time to put a few initial CSS3 settings into place. The transition duration will be 0.8 seconds and transition property will be a basic transform. The MooTools JavaScript. Shortened URL. Les Media Queries CSS3 - Alsacréations. 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. Pure CSS(3) accordion — Venturelab dev team blog—Venturelab—Invest | Inpsire | Ignite. 17 February, 2011 I tend to do a lot of tinkering with code, and came up with something that’s not so new, but still, in my opinion, pretty cool. An accordion using nothing but semantic HTML, CSS and some nice progressive CSS3. There are also two versions, a horizontal one and a vertical one. Demo This article has been ported from the now-defunct Venturelab Devblog, where I had originally authored it.

Horizontal accordion Let’s start with the markup for the horizontal accordion, it’s really nothing special, just some good ol’ semantic HTML: <ul class="accordion"><li class="slide-01"><div><h2>Slide one</h2><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Here we have a simple unordered list containing a series of class-named list items and some content. It’s all fairly self-explanatory; first we have the .accordion class for the <ul> where we define a width and overflow hidden (to clear floats) and some other bits and pieces. Now we reach the bit that makes the accordion functional: How To Create 3D Text using CSS3. I am very happy to see, CSS3 finally eliminates the use of Photoshop in terms of giving text shadows.

I was just trying my hands on text shadows in CSS3 and thought of creating 3D text by giving multiple shadows and got something wonderful. Earlier Text Shadows were announced since the beginning of CSS2 however, the only browser that was supporting this functionality was Safari. If you talk about today’s condition, almost all the browsers except Internet Explorer are running Text Shadows successfully. I agree that we would not be able to use these shadows for clients for next few years because of cross browser compatibility however these features can help you push the boundaries of modern Web Technology today. We do have certain jQuery plug-ins available like IE CSS Shadow that can create shadowed text completely compatible with Internet Explorer. Let’s learn how we create 3D text using CSS3.

HTML code written below will land up in between the body tag. Let’s Download and Tweak with it. Le petit journal permanent de CSS3. 50 CSS3 Tutorials Every Designer Should See | webdesigner. HTML5-CSS3.fr - Tutoriels, exemples et démos HTML5 et CSS3. Trouver son code couleur HTML ! Les couleurs avec du CSS sont les mêmes que celles avec un code HTML. Pour faire référence à d'autres couleurs, vous devrez utiliser le code hexadécimal. C'est bien sûr un peu moins parlant mais universel. Vous pouvez choisir votre couleur en cliquant ici : <-- Cliquer ici Il existe des couleurs nommées normalisées : Les 16 couleurs de fondamentales ont un nom parlant (en anglais) normalisé : elles sont reconnus par tous les navigateurs : Il est possible d'avoir l'ensemble des couleurs de l'arc en ciel :) avec une sa valeur hexadecimal : Couleur HTML et CSS En CSS, est bien pratique de mettre en forme un contenu et le définir une seule fois dans sa feuille de style. color: Gestion de la couleur du texte letter-spacing: Espace entre les lettres text-align: Alignement d'un texte text-decoration: Habiblement d'un texte A savoir : Dans ce chapitre, la notion d'héritage est appliquée.

Couleur d'un texte ou une phrase en CSS Espace entre les lettres.