Mobile app version of vmapp.org
Login or Join
Marchetta884

: Positioning in IE7 I have tried to optimize our site for internet explorer. I have problems with one name Etika, on the first page of our website. It would be nice, if some of you could

@Marchetta884

Posted in: #Css #InternetExplorer

I have tried to optimize our site for internet explorer. I have problems with one name Etika, on the first page of our website.

It would be nice, if some of you could point out, why IE behaves so strange. Here is what it looks like in IE - screenshot menu.fo/images/fail.png
You can see the live website on menu.fo.

Etika should be the first one on the site.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Marchetta884

1 Comments

Sorted by latest first Latest Oldest Best

 

@Mendez628

Through some trial and error, it seems to me that this is caused by the two lines

$('.InfoContainer').hide();
$('.InfoContainer:first').show();


near the beginning of your "box" script (http://menu.fo/js/box). I'm not sure exactly why, but due to some quirk in IE7's page rendering hiding the 3 InfoContainer divs and then showing the first is causing the Etika text to be pushed down.

There are probably other solutions to this, but one possibility is to change the positioning of the InfoContainer divs to absolute (which just removes them from the page flow). You can do this by adding

position: absolute;
right: 400px; /* width - right margin */


for .InfoContainer in your css file. You might have to make some adjustments to get the divs exactly where you want them.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme