on my site i need a css file for ie and ie7 specified... but the ie7 overrrides the ie css when im using ie6 browser... why does it do that? b/c i dont need the margins that the ie7 file is providing...
on my site i need a css file for ie and ie7 specified... but the ie7 overrrides the ie css when im using ie6 browser... why does it do that? b/c i dont need the margins that the ie7 file is providing...
Your conditional comment should be specified in such a way that IE6 won't see it if it's only for IE7.
well can IE6 see this
<!--[if IE7]>
<link rel="stylesheet" type="text/css" href="ie7.css" />
<![endif]-->
it shouldn't.. right??
well when i do one for IE in general and do another one for IE7
the general IE overrides my ie7 margins.. why is that?
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="ie.css" />
<![endif]-->
<!--[if IE7]>
<link rel="stylesheet" type="text/css" href="ie7.css" />
<![endif]-->
<!--[if IE6]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]-->
and ie7 is displaying w/ the margins of ie6.... damnit! hah..
who can solve it first... hmmmm ?
I'm not sure about this idea ... but try doing this (adding a space character) ...
<!--[if IE 6]>
instead of this:
<!--[if IE6]>
=============
Also try this and see what happens (for testing) ...
<!--[if IE 5]>
<p>This message is only displayed in IE5.</p>
<![endif]-->
<!--[if !IE 5]>
<p>This message is only displayed in browsers other than IE5.</p>
<![endif]-->
<!--[if lt IE 7]>
<p>This message is only displayed in browsers earlier than IE7.</p>
<![endif]-->
<!--[if gte IE 6]>
<p>This message is only displayed in IE6 and greater.</p>
<![endif]-->
none of them work.. this doesn't make sense...
okay guys this is weird... its something to do w/ testing it on multiple IE's on the same computer i think.. b/c i just tested on IE6 on another computer that doesn't have IE7 and it looked fine...
u ever heard of anything like this?
oh ... that could be it.
Even though you have several browser revisions loaded,
the "main" browser detected in the registry would be
the original installation (IE7.0?) That sort of makes sense.
I experienced the same thing with a computer that had
both IE6.0 and FF ... the browser detection was always IE6.0.
Now, you tweaked my curiosity and I need to check it out myself.
hah ... "I" tweaked mlseims curiousty.. i feel honored
hey what about the <iframe> post the one below this... takea look at
http://www.kreativ.cn/portfolio.html in IE again its almost there
doh! of course conditionals only work for IE (not FF).
I found this PHP approach to browser detection, but the author
feels that detection is hit-or-miss anyhow.
http://apptools.com/phptools/browser/index.php
Looking at your page with IE ...
Looks nice, even with the black instead of the background image ... hardly noticeable.
With IE, there is a border around the frame.
You might want to see this:
http://htmlhelp.com/reference/html40...al/iframe.html
I don't know if you see the border, so I attached a screenshot (IE6.0).