It should validate fine; it's a perfectly legal construction.
One good reason for using it is to add specificity. div.home might be
defined elsewhere, and div#holder.home is far more specific and thus
will override it (thought I'd use other methods).
Also useful when you have lots of pages an
I'd imagine Andy meant that IE won't internally be able validate it
(because it "sees through" the comments to something that's invalid)
-- thus IE will degrade to quirks mode and a lot of other things you
had designed under the assumption that IE would be in standards mode
will be "off".
Hi...
I hope I'm not going to start/rehash an argument, but I'm looking
for the best practice for one-off css values.
For example, I have a table of data and I want a specific column
to be 77px wide. I don't really like the style="width: 77px" inside a
, because I'm not separating th
Hi all --
After following this list for the past several weeks, I've been
redesigning my current project with a few Good Ideas. One of which is
making everything more semantic.
I had previously been doing this:
Welcome to my site
Lorem ipsum dolorem.
div.title would be