views:

41

answers:

2

If you take a look at: http://www.nrgi-raadgivning.dk/erhverv You can see in the code, that if you are coming from an IE, it should apply a stylesheet...

The IE stylesheet is supposed to set the margin:0 at the dropdown menu ul, but i doesnt? Any ideas to whats wrong?

+2  A: 

From your markup:

<!--[if IE]>
    <link rel="stylesheet" type="text/css" href="/Files/System/ie7.css" />
<![endif]-->
<!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="/Files/System/ie7.css" />
<![endif]-->

However, the linked URL returns a "File not found message":

http://www.nrgi-raadgivning.dk/Files/System/ie7.css

Also, did you mean to link the same stylesheet twice? If so, you should be able to drop the second conditional comment.

Jørn Schou-Rode
Ok, thats fixed now, but it still doenst apply what is in the stylesheet... The IE stylesheet contains:#menubar ul li:hover ul { z-index:9999; display: block; position: absolute; background-color:#FFF; margin: 3px 0 0 0; border:1px solid #CCC; clear:both;}But it doenst apply the margin??
Nicky Christensen
Considering that you already have a `position: absolute`, you could try to use `top: 3px` to apply the vertical offset instead of margin. Does that work?
Jørn Schou-Rode
A: 

Not found is a simple error irrelevant of the content within the CSS. Make sure your path (/Files/System/ie7.css) is right.

contactmatt