background preloader

CSS3 HTML5

Facebook Twitter

CSS gradient border-image tricks. Basic Ready-to-Use CSS Styles. Les propriétés CSS :nth-child et :first-child. Afin de styliser en CSS une liste d’éléments, que ce soit pour la navigation de votre site web ou pour une liste dans vos contenus, vous pouvez utiliser un « ID » différent pour chacun de vos items. Cependant, cela aura comme inconvénient de vous créer plusieurs lignes de codes qui auraient pu être évitées à l’aide de différentes propriétés telles que :nth-child, :nth-of-type, :first-child et :last-child.

Ces propriétés sont également très utiles lorsque vous avez une liste avec énormément d’éléments. Voici un article illustrant à merveille l’utilisation de chacune de ces propriétés CSS dans différents contextes afin d’avoir un contrôle absolu sur vos listes HTML. L’article suivant a été écrit par Chris Coyier du site web CSS-Tricks.com Sélectionner seulement le 5e élément Si vous devez sélectionner seulement le 1er élément de la liste, vous pouvez utiliser ceci li:first-child ou tout simplement li:nth-child(1). Tout sélectionner sauf les cinq premiers Sélectionner seulement les cinq premiers.

Animations for Thumbnail Grids | Demo 3. Caption Hover Effects - Demo 7. Previous Demo Back to the Codrops Article. Examples of Pseudo-Elements Animations and Transitions | Demo 4. MYSQL requete sensible a la casse. Root Path of your HTML directory for script links. Introduction to CSS3 Transitions - Eternal Coding. A good-looking application must provide user with visual feedback. User must always know that an order (a click, a tap or whatever) is well received and understood by the application and animations are a great tool to do so. The new HTML 5 specification (to be honest, I should say “the new CSS 3 specification”) introduces a great tool to handle simple animations: the transitions.

According to “CSS Transitions Module Level 3” specification on W3C site, CSS3 Transitions allows property changes in CSS values to occur smoothly over a specified duration. The aim of this article will be to first describe the concept of transitions and then to see how CSS3 Transitions works and how we can handle browsers that don’t support the feature: In addition, I suggest you to read the “Introduction to CSS3 Animations” (by David Rousset) which is an excellent companion for this article. To launch a game, just click on “Mix it!” And try to resolve the puzzle by clicking the cells! Introduction Declarations Delay. Allonger temps session ? Allonger temps session ?

Quinto: Quote from: shadown on June 08, 2010, 08:47:17 AM Je suis chez OVH en mutualisé. J'ai déjà trouvé des tutoriels sur le Web pour modifier le php.ini mais la quantité d'infos à assimiler et bien trop importante pour cette seule modification. Sur le long terme ces connaissances me servirions certainement mais comme tout le monde je compte mon temps ! J'essaierais d'assimiler ça plus tard. En attendant, si tu as une solution à base de htaccess, je prends ! Merci. Bin en fait j'en ai besoin aussi car j'ai voulu faire des modifs une fois sur une page et j'ai dépassé le délais de 20 minutes, résultat j'ai perdu mes modifs...

J'ai fait des tests ce matin avec MAMP (mon serveur sur MAC) et j'ai augmenté le temps de session seulement quand on se trouve dans la partie administration simplement en plaçant un fichier .htaccess dans le répertoire admin de websitebaker. Le contenu du .htaccess pour une heure correspond à ça :Code: shadown: Cool ! Cool ! Navigation. Transitions & Animations - An Advanced Guide to HTML.

One evolution with CSS3 was the ability to write behaviors for transitions and animations. Front end developers have been asking for the ability to design these interactions within HTML and CSS, without the use of JavaScript or Flash, for years. Now their wish has come true. With CSS3 transitions you have the potential to alter the appearance and behavior of an element whenever a state change occurs, such as when it is hovered over, focused on, active, or targeted. Animations within CSS3 allow the appearance and behavior of an element to be altered in multiple keyframes.

Transitions provide a change from one state to another, while animations can set multiple points of transition upon different keyframes. Transitions As mentioned, for a transition to take place, an element must have a change in state, and different styles must be identified for each state. In the example below the box will change its background color over the course of 1 second in a linear fashion.

Vendor Prefixes Box. Sliding content | CSS3 transitions, transforms and animations. Often used as part of an image gallery or to show additional information, again this can be done in javascript by gradually changing the padding of elements. This often looks choppy on mobile devices, and frames can be missed if the animation is quick. CSS transitions plus transforms help out to make this a simple effect to create. Have a look at a more complete example on the demos page.

Note: Animating by transitioning transforms is hardware accelerated on iOS, making this a good option there. Plan Create a container with overflow set to hidden. Inside that container, create another container with width equal to the width of all the images added together. Demo Image 1Image 2Image 3Image 4 Code The CSS looks like this: The rather simple JS looks like this.

It should be fairly obvious, but you could easily change this by changing the translateX to translateY if you lay the images out differently, or by changing opacity instead to create an image fader. Html - Create non-transparent div on top of transparent parent element. Générateur lecteur flv, mp3 et playlist - V2. CSS background-position property. The Web Robots Pages. In a nutshell Web site owners use the /robots.txt file to give instructions about their site to web robots; this is called The Robots Exclusion Protocol. It works likes this: a robot wants to vists a Web site URL, say Before it does so, it firsts checks for and finds: User-agent: * Disallow: / The "User-agent: *" means this section applies to all robots. There are two important considerations when using /robots.txt: robots can ignore your /robots.txt. So don't try to use /robots.txt to hide information. See also: The details The /robots.txt is a de-facto standard, and is not owned by any standards body.

In addition there are external resources: The /robots.txt standard is not actively developed. The rest of this page gives an overview of how to use /robots.txt on your server, with some simple recipes. How to create a /robots.txt file Where to put it The short answer: in the top-level directory of your web server. Html - Can you target <br /> with css.

Boutons graphiques en CSS - CSS Debutant. Le bouton en image qui change d'aspect au passage de la souris est très utilisé sur les pages web. Longtemps, la majorité de ces boutons graphiques étaient animés par un javascript ou pire (car plus lourd) par un applet java. Avec les CSS, par effet "rollover", la légèreté et la simplicité est de mise pour créer de beaux boutons. Fonctionne avec : tous les navigateurs graphiques Attributs utilisés : background color display float line-height margin padding text-align ; text-decoration vertical-align width Bouton CSS simple Code (x)html Un bouton étant en général utilisé pour faire un lien vers une autre page, les sélecteurs exploités dans le code CSS seront a et a:hover pour le changement d'aspect au survol du bouton (si changement souhaité bien sûr...).

Pour un seul bouton, le code html peut être le suivant : <div class="bouton"><p><a href="#">Bouton</a></p></div> Prenons maintenant deux images dont l'une servira pour le bouton au repos, et l'autre pour le survol. Code CSS Plusieurs boutons CSS. Outils - Tools.

Tutoriels, articles

Scrollorama. Disclaimer: This is an experimental, just-for-fun sort of project and hasn’t been thoroughly tested. Design and build your site, dividing your content into blocks. Embed scrollorama.js after jQuery and initialize the plugin, passing the blocks class selector as a parameter. Target an element and animate its properties. The animation parameters you can use are: Hook into the onBlockChange event. scrollorama.onBlockChange(function() { alert('You just scrolled to block#'+scrollorama.blockIndex); }); Note: If you are not using the pinning feature, it is recommended you disable it. Scripts. Références.