background preloader

CSS Compressor, Free CSS Compressor and CSS Compression Tool

EASY - One Click CSS Compressor NO coding expertise required A click of the mouse is all you need to speed up your webpage load time by up to 80%! Most CSS can be compressed to one third its original size. Our CSS Compressor works with virtually all coding styles of CSS stylesheets and CSS versions. 99% of users can just copy and paste their CSS, followed by clicking the “Process CSS” button and thats it to to give their website the single greatest potential boost in page load time - as compared to any other speed up your CSS technique. ADVANCED FEATURES - Optional CSS Compression Settings Simple - compress your CSS so it loads faster The Minify CSS compressor has optional advanced features to give you even further control over how you compress your CSS. SPEED INCREASE TIME!!! Decrease webpage load time dramatically Faster loading pages make your users happier and it saves you money on your web hosting bill. FAST COMPRESSION - Ultra Fast Compression & Stylesheet Minifying

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)

Utiliser cURL (PHP) Présentation de cURL Cette bibliothèque vous permet de communiquer avec des sites distants. Par exemple, il vous est possible via cURL de récupérer la source d'une page externe, d'envoyer une requête POST, ... À la fin de ce tutoriel, vous serez capable de : Récupérer la source d'une pageEnvoyer des requêtes POST à une page (y comprit l'envoi de fichiers)Se connecter à un site, puis visiter des pages en gardant la connexion Le tutoriel sera accompagné d'exemples, permettant d'interagir avec l'hébergeur MegaUpload. Update : le site étant fermé, mes exemples aux travers de cet article ne fonctionne plus. Récupérer la source d'une page Première étape, initialiser une nouvelle session cURL. Cette fonction retourne un identifiant de session cURL, que nous utiliserons plus tard avec les fonctions curl_setopt, curl_exec, et curl_close. Maintenant, nous allons devoir définir des options de transmission à cette session. Il va par exemple falloir lui fournir l'url de la page à récupérer. Introduction

Stitches - An HTML5 sprite sheet generator Drag & drop image files onto the space below, or use the “Open” link to load images using the file browser. Then, click “Generate” to create a sprite sheet and stylesheet. This demo uses a couple of HTML5 APIs, and it is only compatible with modern browsers. Drag & drop image files onto the space below, or use the “Open” link to load images using the file browser. Then, click “Generate” to create a sprite sheet and stylesheet. Stitches is developed by Matthew Cobbs in concert with the lovely open-source community at Github. Copyright © 2013 Matthew Cobbs Licensed under the MIT license. Implementation After dependencies, Stitches requires a stylesheet, a script, and an HTML element to get the job done: The sprite sheet generator is automatically created in elements that have the stitches class: If you choose, any images that are a part of the initial markup will be loaded onto the canvas: Documentation Documentation is available here. Dependencies Contributing License Download

ttf2eot on the web! Use this tool to convert a TrueType (TTF) font file into an OpenType (EOT) font file, for use with Internet Explorer for embedded fonts. After using this tool, you will be able to embed fonts on your web pages that can be seen on Internet Explorer 4 and higher, and all current modern web browsers that support embedded fonts via CSS3 (Firefox 3.5 and higher are among such browsers). See the Restrictions that are in place for this web application. There are some known issues with the ttf2eot binary this application uses and certain TTF files won't work on IE when converted to EOT. If your font doesn't work on IE after conversion, try this other font converter instead. To keep this program from consuming too many resources on the server, the following restrictions are in place: This program will only accept a TTF file that is less than 2 MB (or 1024*1024*2 bytes). If this program isn't working for you, feel free to contact me. Upload a valid TrueType Font file and click the button.

CSS Drive: Image to Colors Palette Generator Notes: - Max file size: 1 MB. - Supported image types:.png, .gif, .jpg and .jpeg images. - Photoshop swatches and CSS styles also generated. Light Color Palette #909b86 #a0a68f #adb39b #bdb682 #b8bca2 #c2c6b3 #dad295 Medium Color Palette #21360d #404d1f #5a6636 #7b6c05 #858d66 #b4a42b Dark Color Palette #0d1505 #191e0c #312b02 #2d301b Complete Color Palette #3b4e17 #39461b #3b4b1c #3e5521 #43582f #475a22 #555f2a #52602b #636b38 #707d48 #d1d7b1 #fade11 #555a24 #57642c #bfbe9f #c5c9a8 #3d4e18 #81713d #edc70a #605f27 #c2a91b #374a12 #483f04 #394c14 #5e7433 #35420c #8b6d0d #43541d #b5b994 #d0b712 #4b5e27 #2c4213 #495d20 #3a4719 Save as CSS stylesheet (.css file) Save as Photoshop swatches (.aco file) Notes: - Max file size: 1 MB. - Supported image types:.png, .gif, .jpg and .jpeg images. - Photoshop swatches and CSS styles also generated. Light Color Palette #909b86 #a0a68f #adb39b #bdb682 #b8bca2 #c2c6b3 #dad295 Medium Color Palette #21360d #404d1f #5a6636 #7b6c05 #858d66 #b4a42b Dark Color Palette #0d1505 #191e0c #312b02 #2d301b Complete Color Palette #3b4e17 #39461b

Générateur CSS3 Avec les dernières avancées CSS3, de nombreux effets qui demandaient autrefois le maniement de Photoshop sont désormais directement codable en CSS. Il est cependant toujours un peu difficile de visualiser des effets graphiques (ombrages, dégradés…) en regardant une ligne de code. Cette liste de générateurs CSS vous permettra d’obtenir facilement les effets de style désirés via une interface graphique, et d’extraire le code CSS correspondant. Cette liste de générateurs CSS3 a été publiée par Chris Spooner sur le site Line25 . Les générateurs CSS3 tout-en-un Les générateurs CSS de grille et de squelette Les générateurs CSS de dégradé (gradient) {*style:<b> </b>*} Les générateurs CSS de bouton Les éditeurs CSS de texte Les générateurs CSS de « sprite » Le meilleur du reste

70+ essential resources for creating liquid and elastic layouts I often get asked for my recommendations of resources to learn how to create liquid/fluid and elastic layouts. My first answer is, of course, my own book Flexible Web Design: Creating Liquid and Elastic Layouts with CSS. Hey, is it so bad to be proud of your work? It’s the only book out there entirely devoted to designing and building flexible web sites, and the dozens of layout techniques it covers can also be applied to fixed-width design. Design inspiration It’s always helpful to look at existing liquid and elastic sites to get inspiration for how to design your own. Templates Even if you don’t read my book, you can download the example and exercise files from the book’s companion site. Here are some other layout templates: Here are some frameworks and grid systems that allow you to make liquid and/or elastic layouts: Articles Here are some general articles on the what and why of flexible layouts: Understanding min-width and max-width is essential to working with flexible layouts:

Selectivizr - CSS3 pseudo-class and attribute selectors for IE 6-8 CSS Tools: Reset CSS The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. The general reasoning behind this was discussed in a May 2007 post, if you're interested. Reset styles quite often appear in CSS frameworks, and the original "meyerweb reset" found its way into Blueprint, among others. The reset styles given here are intentionally very generic. There isn't any default color or background set for the body element, for example. In other words, this is a starting point, not a self-contained black box of no-touchiness. If you want to use my reset styles, then feel free! Previous Versions v1.0 (200802) Acknowledgments Thanks to Paul Chaplin for the blockquote / q rules.

Un pyjama efficace pour Internet Explorer | Border-Labs En termes d’ergonomie, on conseille souvent d’implanter dans ses tables HTML des « pyjamas », c’est-à-dire des couleurs de lignes alternées. Cela permet de faciliter la lecture : l’œil peut plus facilement suivre les lignes. Une table avec pyjama En CSS 3, il existe une solution tout à fait satisfaisante, utiliser la pseudo classe nth-child qui permet de sélectionner le nième fils d’un nœud DOM. Cette pseudo classe accepte une syntaxe du type an+b où n représente le fils sélectionné et accepte deux mots clefs odd (pour les fils dont l’index est impair) et even (pour les fils dont l’index est pair). nth-child(2n) correspond à nth-child(even)nth-child(2n+1) correspond à nth-child(odd) On peut donc directement utiliser cette pseudo classe pour sélectionner les lignes paires et impaires (c’est-à-dire les nœuds de type TR) en fonction de la parité de leur index. Du coup, il existe même des librairies javascript pour résoudre de façon générique ce problème, par exemple :

Prévoir un site pour toutes les résolutions (design fluide) La question des dimensions idéales d'un site est souvent posée. Les résolutions d'écran varient généralement de 800x600 pixels à 1280x960 pixels, en passant par 1024x768. Quelle est donc la résolution à privilégier ? Les sites web étant conçus avec des éléments graphiques (la plupart du temps) non vectoriels, ceux-ci n'adoptent pas le même rendu selon la résolution de l'écran du visiteur, notamment en terme de répartition horizontale. Quelques statistiques (2010) 1% d'utilisateurs en 800x600 20% en 1024x768 75% en résolutions supérieures (sources : W3Schools, W3counter) Premier constat : pour toucher un maximum de visiteurs (toutes résolutions confondues), un site doit être conçu sur une résolution minimale de 1024x768, et être consultable (avec ascenseurs) dans les résolutions inférieures. Tendances actuelles Il existe plusieurs techniques de design qui s'adaptent bien à toutes les résolutions actuelles : Le design fluide "Penser" le design à l'avance Vers le Tout fluide ?

Flat UI - Free User Interface Kit Header 3The Vatican transitions to a Header 4Great American Bites: Telluride's Oak, The Header 5Author Diane Alberts loves her some good Header 6With the success of young-adult book-to-movie Paragraph Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Image Lead Text Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Quote Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Small Font Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.

Related: