By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,785 Members | 1,072 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,785 IT Pros & Developers. It's quick & easy.

How to diferenciate IE7 from Opera and Firefox?

P: n/a
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,

Jan 30 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a


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.

Jan 30 '07 #2

P: n/a
Thanks! This worked!
Incredible... Anyway, I'm going to bookmark this :)

Jan 30 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.