OZONE Asylum
Forums
CSS - DOM - XHTML - XML - XSL - XSLT
div#div# Another IE CSS Hack technique?
This page's ID:
30572
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
wait wait. [url=http://msdn.microsoft.com/en-us/library/ms537512.aspx]IE Conditional comments[/url] (<!--[if IE]> blah blah <![endif]--> ) are the way to communicate to IE only browsers. Using hacks Karl are perhaps a short and sweet response to an IE quirk but the problem is they can be lost in the miasma of CSS code you have. Even if you decide to put IE hacks in a specific commented part of your global.css you're still relying on someone else finding it there, or yourself remembering it's down there, and then it will have lost relevance to the other statements of CSS it may be related to. Much better is to have a dedicated stylesheet for IE only browsers (or different versions if that's what is required) and use proper selection to override existing statements in your general stylesheets. You'll certainly never forget where you put those styles and any new developers that might stumble upon your code will instantly see that there are IE specific styles going on there. It's now pretty much possible to develop sites without using any hacks at all if you're clever with your CSS and use conditional comments. Esskey, why would you need to use dynamically generated CSS? sounds a bit nasty :( [url=http://www.alebie.com][img]http://www.geocities.com/blaise69dude/images/BlaiseSig.gif[/img][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/3624]Blaise[/url] on 10-01-2008 09:51)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »