Forum Moderators: not2easy

Message Too Old, No Replies

Postioning not rendering correctly in IE

designed site in Firefox, them checkedin IE and it's funky

         

toekneebullard

2:55 pm on May 20, 2009 (gmt 0)

10+ Year Member



OK, here's my little test header I made up for troubleshooting:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<style type="text/css">

body{
margin: 0;
padding: 0;
}

#header{
float: left;
width: 800px;
height: 77px;
background-image: url(img/header.gif);
background-repeat: no-repeat;
background-position: center top;
border: 1px dotted #000
}

#navmenu {
background-image: url(img/navmenu.gif);
background-repeat: no-repeat;
background-position: center 1px;
width: 800px;
height: 36px;
top: 63px;
position: relative;
border: 1px solid #ccc
}
#navmenu ul {margin: -2; padding: 0;
list-style-type: none; list-style-image: none;
}

#navmenu li {
display: inline;
position: relative;
left: 107px;
padding: 0 10px 0 0;
border: 1px solid #ccc
}

#navmenu a {text-decoration:none; color: blue;
}

#navmenu img { border: none;
}
</style>

</head>
<body>
<div id="header">
<div id="navmenu">
<a href="<? get_bloginfo('url'); ?>" id="home"></a>
<ul>
<li><a href="<?php bloginfo('url'); ?>"><img src="./img/about.jpg'; ?>" alt="about" width="55px" height="26px" /></a></li>
<li><a href="<?php bloginfo('url'); ?>"><img src="./img/photos.jpg'; ?>" alt="photos" width="64px" height="26px" /></a></li>
<li><a href="<?php bloginfo('url'); ?>"><img src="./img/music.jpg'; ?>" alt="music" width="57px" height="26px" /></a></li>
<li><a href="<?php bloginfo('url'); ?>"><img src="./img/vocal.jpg'; ?>" alt="vocal tutorial" width="116px" height="26px" /></a></li>
</ul>
</div>
</div>

As you can see there's some images there that won't be showing if you test this out, however, the alt text shows the issue pretty well. It appears that IE is adding about 30 pixels or so to the left side of my navmenu list. (This is most easily seen if you delete the left:107px from the #navmenu li entry) I can't for the life of me figure out why.

I appreciate any help, and forgive me if I missed any of the posting steps,I tried hard to stay within the rules.

toekneebullard

2:50 pm on May 21, 2009 (gmt 0)

10+ Year Member



Can anyone help? Is there some more info I can provide?

abidshahzad4u

6:17 pm on May 22, 2009 (gmt 0)

10+ Year Member



Please try as

#navmenu img { border:none; float:left; padding-left:0px; }

May be it's helpful, if not try something alike.

toekneebullard

6:25 pm on May 22, 2009 (gmt 0)

10+ Year Member



That doesn't seem to do the trick. The list still stays over to the right, and in Firefox it really messes things up.

enigma1

11:03 am on May 26, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



change the #navmenu ul margin from -2 to 0

toekneebullard

11:30 am on May 26, 2009 (gmt 0)

10+ Year Member



That seems to fix it in this situation. I'll put it in the full page code and see if that solves the issues.

Thanks enigma!

toekneebullard

3:01 pm on May 27, 2009 (gmt 0)

10+ Year Member



That sure did fix it! Thanks for your help enigma!