Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / January 2007



Tip: Looking for answers? Try searching our database.

How to diferenciate IE7 from Opera and Firefox?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charles A. Landemaine - 30 Jan 2007 14:50 GMT
I tried a html>body hack to differenciate rules for IE7 and Opera/
Firefox, but IE7 is able to read this rule :(

How can I differenciate rules for IE7?
Thanks,
Andy Dingley - 30 Jan 2007 17:29 GMT
On 30 Jan, 14:50, "Charles A. Landemaine" <landema...@gmail.com>
wrote:

> How can I differenciate rules for IE7?

Use conditional comments. Although they're an ugly M$oft hack, they
degrade nicely on real browsers. Just make sure you're always testing
that something _is_ M$oft, not that it isn't (so the fallback works
right).

<!--[if IE]>
<style type="text/css" >
body {
    font-size: 85%;
}
</style>
<![endif]-->

There are similar constructs for IE7 etc.
Charles A. Landemaine - 30 Jan 2007 17:51 GMT
Thanks! This worked!
Incredible... Anyway, I'm going to bookmark this :)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.