On 13 Oct 2004, at 11:43 AM, Chris Kennon wrote:

Can you point me to this section in the w3.org specification. I'm not doubting your expertise, but I'm confused why a class and id cannot have the same name.



On Tuesday, October 12, 2004, at 04:01 PM, Nick Gleitzman wrote:

Chris, before anything else, you have a fundamental error in your CSS that you should correct: you can't have both an id and a class with the same name (i.e. #high2, .high2). This is going to cause conflicts you can do without.

Uh - no, not with the schedule I've got today - but rather let me rephrase my previous statement:


You shouldn't have both an id and a class with the same name; this is going to cause confusion you can do without.

I had a conflict occur in one version of a browser when doing just this, in a build I did some time ago - sorry, don't remebeer the specifics, I just remember learning (the hard way, it seemed like, after hours of testing) that this wasn't a good idea.

Having said that, it was almost certainly an older browser version, so these days it may not be such a problem. It's just something I now instinctively don't do; it makes site edits down the track that much easier.

But hey, whatever works for you...

N
___________________________
Omnivision. Websight.
http://www.omnivision.com.au/

******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to