Tag Archives: css

paulhammond.org: Conditional classnames

Interesting use of conditional comments:

If you use this HTML:

<!--[if IE ]>
  <body class="IE">
<![endif]-->
<!--[if !IE]>-->
  <body>
<!--<![endif]-->

with CSS that looks something like:

div.foo {
    color: inherit;
}
.ie div.foo {
    color: #ff8000;

then you get all of the advantages of using conditional comments to work around problems in Internet Explorer, without the extra HTTP request of an IE-only stylesheet.

(From paulhammond.org: Conditional classnames.)

Via Twitter (Simon Willison)

Coda Clips

Here’s a nice website for everybody who uses Coda:

“We all love Coda, and we all love how much time we can save using Clips. Coda-Clips.com aims to build a comprehensive repository of Clips from our own libraries and user submissions.”

(From Coda Clips.)

CSS naked day

Dustin Diaz announced the first annual CSS naked day. All participating websites will appear “naked”, that is without style sheet, on April 05. There is a list of all participants.