G'day

I don't like hacks, especially when they add hieroglyphics and other nonsense to clean css. Still, especially when it comes to the box model difference between IE5 (Windows) and others, it's sometimes necessary..

Can using the lack of case sensitivity in older browsers be a viable alternative to more complex hacks? Has anyone tried this, and are there any drawbacks with specific newer browsers (and perhaps Mac browsers - is IE5 Mac case sensitive)?

Here's an example of what I'm doing:

(x)HTML:

<div id="nav">etc</div>

CSS:

#nav { width: 180px; padding: 10px }
#Nav { width: 200px }

Seems more efficient than this setup:

#nav { width: 180px; padding: 10px }
/* Hide from Mac IE \*/
* html #nav { width: 200px; w\idth: 180px }

If this works, I could group all the "incorrect case" id's and classes at the end of the stylesheet, or even in a separate css file. Newer browsers would see no matching class or id in the (x)HTML so they would not use it.

Thoughts, anyone?

Regards --
Bert Doorn, Better Web Design
http://www.betterwebdesign.com.au/
Fast-loading, user-friendly websites



****************************************************** 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