Link

Imagine a scenario where we had a blog that has a language switcher between English and German. Generally German words are longer than English so we might want to set the reading length on the German version of our article to a slightly wider value.

The CSS might look something like this:

article {
   max-width:33em;
}
:lang(de) article {
  max-width:40em;
}

As soon as the ‘lang’ attribute is changed from the default en to de (through a mechanism like a language select dropdown) the width of the <article> changes to a wider reading length making a (potentially) easier read for our German readers.

(Source: twitter.com)

Link

Don’t use .header ul{} if what you really mean is .site-nav{}. […] Your selectors should be as explicit as your reason for wanting to select something.

(Source: twitter.com)

Link

thisisresponsive:

Great thoughts about CSS media types and media queries

Tags: CSS responsive
Video

Why, hello!. I’m Yeoman - a robust and opinionated client-side stack, comprised of tools and frameworks that can help developers quickly build beautiful web applications.

Looks promising:

  • Scaffolding (HTML5 Boilerplate, Twitter Bootstrap, AMD / RequireJS, tests…)
  • Build process with auto-compilation (CoffeScript, Compass), minification, optimization (HTML, images), generation of app cache manifest…
  • Package management yeoman install jquery FTW
  • Auto-Lint
  • PhantomJS unit testing
  • Built-in preview server

(Source: twitter.com)

Quote
"Use document.addEventListener('touchend', function(){}); to enable :active on mobile"

(Source: twitter.com)

Link

(Source: twitter.com)

Link

It is recommended that the reference pixel be the visual angle of one pixel on a device with a pixel density of 96dpi and a distance from the reader of an arm’s length. For a nominal arm’s length of 28 inches, the visual angle is therefore about 0.0213 degrees.

(Source: twitter.com)

Tags: css ui unit
Link

By Lea Verou (@LeaVerou). Simple and elegant:

dd:after { content: '\A'; white-space: pre; }

Tags: css
Link

(Source: twitter.com)

Link

A competitor to Less.app, which works only on Mac OS X but does have funnier reviews.

(Source: twitter.com)