background preloader

CSS

Facebook Twitter

Modular front-end development with LESS. I am constantly looking for ways to make my work as a front-end developer easier and more efficient, but it is only recently that I have paid my good friend CSS any real attention.

Modular front-end development with LESS

This article will explore the benefit of organizing your code efficiently while keeping it reusable and modular. I am constantly looking for ways to make my work as a front-end developer easier and more efficient, but it is only recently that I have paid my good friend CSS any real attention. The whole movement to make this sector of front-end development easier started with grid systems and the idea of object-oriented CSS, and has since been made easier with extensions to the language itself in the form of CSS pre-processors — the two most well-known being LESS and Sass.

This article will explore the benefit of organizing your code efficiently while keeping it reusable and modular. Let’s get started! The tools of speedy CSS development Separate structure and skin. It would be better to write: And so forth. Page Transitions with CSS3. In the last few years, we've seen a lot of single page websites lying around the internet, most of them using JavaScript for some transitions effect.

Page Transitions with CSS3

Well, now I'm gonna teach you how you can have your own, but instead I'll be using CSS Transitions and the :target property to do all the magic. View demo Download source In the last few years, we’ve seen a lot of single page websites lying around the internet, most of them using JavaScript for some transitions effect. Well, now I’m gonna teach you how you can have your own, but instead I’ll be using CSS Transitions and the :target property to do all the magic.

The Dribbble shots used in the demos are by Matt Kaufenberg. Markup The HTML will contain five main divisions: a header and the four content sections. In the header we will have the main heading and the navigation: Now, the main idea is to use the pseudo-class :target in order to add a transition to the current section. First we will give style to our header and the navigation.

CSS3 exemples

CSS3 Image Styles. When applying CSS3 inset box-shadow or border-radius directly to the image element, the browser doesn't render the CSS style perfectly.

CSS3 Image Styles

However, if the image is applied as background-image, you can add any style to it and have it rendered properly. Darcy Clarke and I put a quick tutorial together on how to use jQuery to make perfect rounded corner images dynamically. Incredibly Useful CSS Snippets. Below is a list of CSS snippets that will help you minimize headaches, frustration and save your time while writing css, and I hope you will find it useful.

Incredibly Useful CSS Snippets

Whether you are a experienced web developer, or just getting started with css, they are all worth checking out. Source. Fun with CSS3 Text Shadow Property. Typography is everyone’s favorite toy in web design.

Fun with CSS3 Text Shadow Property

The CSS3 text-shadow property is commonly used to recreate Photoshop’s Drop Shadow type shading to add subtle shadows which help add depth, dimension and to lift an element from the page. But this isn’t all the text-shadow property is capable of. With a little ingenuity and creativity text-shadow can create some remarkable effects. Today we’re going to run through several CSS3 text-shadow examples that you can copy and paste for your own work. The syntax includes four variables to work with, the first two set your shadow’s position (horizontal and vertical), the third sets the amount of blur and the fourth the color of the shadow. There is a clear separation between the text and its shadow. CssSandpaper - Une librairie Javascript pour simuler du CSS3. Une feuille de styles de base pour le Web mobile - Alsacréations. Parce que faire un site web pour terminal mobile, ce n’est pas fixer sa largeur à 320 pixels ou proposer une version iPhone uniquement, je vous propose un tour d’horizon de quelques solutions offertes par CSS pour adapter une présentation existante aux mobinautes : gérer la largeur, redimensionner les éléments, passer à une seule colonne, gérer les débordements, supprimer le superflu, adapter les liens et les tailles de polices selon l'orientation.

Une feuille de styles de base pour le Web mobile - Alsacréations

Pour vous faciliter la tâche, voici ci-dessous une feuille de style dédiée au média mobile qui condense diverses bonnes pratiques et astuces. Ces règles peuvent être externalisées dans un fichier CSS séparé, ou incluses directement au sein du document de styles global, déclarées à l’aide d'une règle media query de type @media (max-width: 640px) {...}. L’objectif de cette feuille de styles est avant tout de poser un socle de bases communes que vous pourrez adapter à vos convenances ou besoins personnels. Préambule : fixer le Viewport. CSSPrefixer. Layer Styles. Comprendre la cascade en CSS. Cette partie du site n'est plus maintenue, elle reste en ligne pour la postérité.

Comprendre la cascade en CSS

CSS : comprendre le fonctionnement de float et clear. Pourtant l'une des propriétés les plus utilisées en matière de CSS, float, avec ses valeurs left, right et none, reste celle dont le comportement est le moins prédictible par les designers Web même non débutants.

CSS : comprendre le fonctionnement de float et clear

Tutorial CSS : margin-top, margin-right, margin-bottom, margin-left pour définir individuellement les marges d'une boite / 40a. CSS : on reprend tout à zéro ! Par Joe Gillespie Cet article est le premier d'une série qui en compte 15.

CSS : on reprend tout à zéro !

Chaque épisode sera publié bimensuellement dans nos pages. Regardez le Cours Feuilles CSS : Créer un formulaire en Vidéo 100% Gratuit. Jardin Zen css: La beauté de la conception CSS. So What is This About?

Jardin Zen css: La beauté de la conception CSS

There is a continuing need to show the power of CSS. The Zen Garden aims to excite, inspire, and encourage participation. To begin, view some of the existing designs in the list. Clicking on any one will load the style sheet into this very page. The HTML remains the same, the only thing that has changed is the external CSS file. CSS allows complete and total control over the style of a hypertext document.