Magic Numbers in CSS. FIXED! font-face rendering incorrectly in Chrome. For a while now web designers have been tackling the issue of fonts on the web.
The @Font-Face Rule And Useful Web Font Tricks. Advertisement The possibility of embedding any font you like into websites via @font-face is an additional stylistic device which promises to abolish the monotony of the usual system fonts.
It surely would be all too easy if there was only one Web font format out there. Instead, there’s quite a variety, as you will get to know in this article.
An Introduction To LESS, And Comparison To Sass - Smashing Magazine. Advertisement I’ve been using LESS1 religiously ever since I stumbled upon it months ago.
CSS was never really a problem for me, in and of itself, but I was intrigued by the idea of using variables to create something along the lines of a color palette for my websites and themes. Having a color palette with a fixed number of options to choose from helps prevent me from going color crazy and deviating from a chosen style. As it turns out, LESS — and Sass for that matter — are so much more than that.
Sass has been kicking around for a while, but I hadn’t given it a try until just recently. Sass usually goes hand-in-hand with Rails, Compass makes it so easy to run Sass on standalone projects that I’ve started using it on nearly everything. The result is faster, DRYer, more enjoyable coding. Don’t use IDs in CSS selectors? ❧ Oli.jp (@boblet)
Recently I came across the post by Matt Wilcox called CSS Lint is harmful, ranting about the useful free tool CSS Lint.
The 30 CSS Selectors you Must Memorize. Twice a month, we revisit some of our readers’ favorite posts from throughout the history of Nettuts+.
This tutorial was first published in November, 2010. So you learned the base id, class, and descendant selectors - and then called it a day? If so, you're missing out on an enormous level of flexibility. While many of the selectors mentioned in this article are part of the CSS3 spec, and are, consequently, only available in modern browsers, you owe it to yourself to commit these to memory. Let's knock the obvious ones out, for the beginners, before we move onto the more advanced selectors. The star symbol will target every single element on the page. The * can also be used with child selectors. This will target every single element that is a child of the #container div. IE6+ Firefox Chrome Safari Opera.
CSS3 Solutions for Internet Explorer - Smashing Magazine. Advertisement Experienced developers understand that CSS3 can be added to new projects with progressive enhancement in mind.
This ensures that content is accessible while non-supportive browsers fall back to a less-enhanced experience for the user. But developers could face a situation where a client insists that the enhancements work cross-browser, demanding support even for IE6. In that case, I’ve collected together a number of options that developers can consider for those circumstances where support for a CSS3 feature is required for all versions of Internet Explorer (IE6, IE7, & IE8 — all of which are still currently in significant use). iPad Orientation CSS (Revised) - desideratum.
Ie7nomore.com, just another CSS playground. CSS - Contents and compatibility. CSS > selection styles. A new micro clearfix hack. The clearfix hack is a popular way to contain floats without resorting to using presentational markup.
This article presents an update to the clearfix method that further reduces the amount of CSS required. Demo: Micro clearfix hack Known support: Firefox 3.5+, Safari 4+, Chrome, Opera 9+, IE 6+ The “micro clearfix” method is suitable for modern browsers and builds upon Thierry Koblentz’s “clearfix reloaded”, which introduced the use of both the :before and :after pseudo-elements.