I have been playing with the underscore hack and noticed that almost
anything that isn't 0-1 or a-z performs the same trick. Certainly * works,
as does
#,
<,
>,
{,
},
[,
],
(,
),
^,
/,
=,
~,
@,
?,
and, probably, lots more. If this is correct, I personally would prefer to
put my 'IE only' corrections in square brackets to make them stand out a
bit, e.g.,
#content {
border : 10px solid #0000ff;
[ border : 10px solid #ff0000; ]
width : 100%;
[/* ie only */width : 600px;]
}
Is this very naughty? It doesn't validate as CSS, but then neither does the
underscore hack (unless the validator is wrong, as some would have us
believe).
So what's the story here?
Confused as to why anyone would pick on 'underscore' out of (seemingly) lots
of nicer and easier choices.
Thanks,
Bob McClelland,
Cornwall (U.K.)
www.gwelanmor-internet.co.uk
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************