journal features
movie reviews
photo of the day

adding browser type to CSS

the journal of Michael Werneburg

twenty-seven years and one million words

Toronto, 2012.04.05

I'm working on a demo system that needs an interface overhaul, and I've found a very helpful trick.

With one line of javascript (my personal nomination for Worst Mistake of Web 1.0) you can add the browser type to the mix of selectors for cascading style sheet (CSS) definitions of layout and style.

Woohoo!

rand()m quote

When destiny comes to a man from outside, it lays him low, just as an arrow lays a deer low. When destiny comes to a man from within, from his innermost being, it makes him strong, it makes him into a god…

—Hermann Hesse