background preloader

CSS

Facebook Twitter

jQuery cssParentSelector - parent selector for css. Places It's Tempting To Use Display: None; But Don't. You want to hide something on a page, so: But wait! By applying that class to an element you've immediately made that content "inaccessible" by screen readers. You've probably known this forever, but still the poison apple sneaks into our code once in a while. I don't want to re-hash all the specifics. Your best bet is to read "Now You See Me" by Aaron Gustafson on A List Apart to get an understanding of this if you don't already. One way to encourage yourself to do the right thing is by creating more appropriate class names.

I use ! Another option for accessible hiding comes from some Snook research and the HTML5 boilerplate: OK you got it. Again Aaron Gustafson has us covered there, who suggests applying the accessible class name after the sliding is done and then removing the display: none by sliding it the other direction. Here's a demo of that: View Demo Now we have the tools we need to stop using display: none and start using more accessible "hiding" methods. FAQ pages Labels Tabs Share On. AppStorm App Reviews and Blogs. SpriteRight: Create CSS Image Sprites the Easy Way.

If you’re a web developer, then you know that manually creating image sprites is a pain. Even worse is the process of trying to position those sprites just right within your CSS. It’s a necessary evil, but don’t you wish you could skip it? Today we’re going to take a look at a Mac app called SpriteRight that promises to completely automates this process. Will it successfully turn sprite creation into an easy and even enjoyable task? What Are CSS Image Sprites? The concept behind image sprites, and indeed this entire app, is a little on the techy side.

The basic idea is that a given website can have a ton of different images, each of which represents an HTTP request that has to be made to the server. To account for this, many web designers will place all or many of their images onto a single document all lined up in a grid-like format and then reference parts of that image in their code to make the right pictures appear in the right places. Meet SpriteRight SpriteRight Importing Images. Tutoriel: faire un bouton CSS réutilisable avec SASS - tutoriels-integration. Pour répondre aux commentaires de mon article de la semaine dernière (sur le besoin d'une approche un peu plus DRY du CSS), voilà une mise en pratique par l'exemple, avec du Sass en hors d'oeuvre. DRY est l'acronyme de "Don't Repeat Yourself", qui veut dire "ne vous répétez pas". C'est une philosophie de programmation qui demande d'éviter le plus possible les actions répétitives, pour gagner en plaisir de travail, productivité, et efficacité en évitant les erreurs de copier-coller.

Dans l'intégration, cela passe par un choix judicieux des classes données aux éléments HTML, et un découpage clair des CSS. Pour illustrer cela, nous allons prendre comme exemple des boutons. Il est possible que vous utilisiez un même bouton sur plusieurs sites différents, en changeant simplement la couleur du fond/du texte, par exemple. Il serait donc judicieux, quand vous designez votre bouton en CSS, d'en garder le code dans un coin, pour pouvoir le réutiliser sur un prochain projet. Création du fichier. 20+ Amazing CSS3 Text Effect Tutorials and Experiments. OK, so you’ve designed that nice web page of yours, picked the right backgrounds and colors for it to set the adequate tone and atmosphere for your visitors or clients, decided on the appropriate icon sets to make the browsing even more accessible, exciting and interesting, but how about the text?

You still haven’t thought about it? If not, don’t despair, because we’re here to help! There is always Photoshop you can create some nice fonts and insert text with, but there is also CSS3 – a very nice style sheet language that can make the browsing experience and thus your website design aspect even better! CSS stands for cascading style sheets and is a great way you can improve the accessibility of the content, provide an enhanced flexibility and control over web elements such as fonts, text and colors. You can create some pretty nice text effects and many more nice stuff with CSS3. Glass Text Effect (refractive index) with CSS3 Fun With CSS Text-Shadow Create Beautiful CSS3 Typography.

FireCSS - See CSS edits in all browsers. Ultimate CSS Gradient Generator - ColorZilla.com.

HTML5 - CSS3