Forum Moderators: not2easy

Message Too Old, No Replies

Horizontal List

         

dukelips

8:40 am on Sep 26, 2008 (gmt 0)

10+ Year Member



I have an issue with the list displayed as horizontal menu.
The menu appears normal in IE7 but adds a 3px height in the Firefox and opera.

How to solve this

swa66

10:44 am on Sep 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try posting some (minimal) code that still shows the problem you have.

Tip: don't develop in IE, it messes with your head as you're coding around bugs. It's much easier doing it from the first try in e.g. Firefox, verify it's the same in Safari, opera etc. and only then work around the bugs in the different versions of IE using conditional comments.

dukelips

10:53 am on Sep 26, 2008 (gmt 0)

10+ Year Member



<html>
<head><title>Sample</title>

<style type="text/css">
body
{
background-color:#FFFFFF;
margin:0;
padding:0;
height:100%;
}
#banner
{
width:870px;
height:90px;
margin:0;
padding:0;
background-image:url('kcimg2/head.gif');
background-color:red;
border:0;
}
#menudiv
{
width:870px;
height:35px;
margin:0px;
padding:0px;
background-image:url('kcimg2/menus.gif');
border:0px;
}


ul.menudivul
{
margin:0px;
padding:0px;
border:0px solid;

}

li.menulink
{
font-size:11px;
font-family:arial;
text-align:left;
display:inline;
color:#FFFFFF;
padding:0px;
margin:0px 0px 0px 22px;
text-transform:uppercase;
}

</style>
</head>

<body>

<div id="maindiv"><!--MAIN DIV START-->
<div id="banner"><!--BANNER DIV START-->

</div><!--BANNER DIV END-->

<div id="menudiv"><!--MENU DIV START-->

<ul class="menudivul">
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
<li class="menulink">link1</li>
</ul>
</div><!--MENU DIV END-->
<div style="height:20px;"></div><!--GAPS-->
</body>
</html>

dukelips

10:54 am on Sep 26, 2008 (gmt 0)

10+ Year Member



it appears normal in opera & IE but adds a 3px gap in FF