Hi all, I hav an issue with float element while using IE8/earlier. I use Display:inline in CSS but still hav double margin issue while foating the element. I put the codes, pls help me to remove the extra spaces/unwanted spaces.
HTML CODE:
<div id="header">
<div id="logophoto"><a href="#"><img src="images/logo.gif" border="0" width="86" height="28" alt="ManipalEdu"></div>
<div id="h_menu">
<ul>
<li><a href="#">Preference</a> | </li>
<li><a href="#">Contact</a> | </li>
<li><a href="#">Help </a> </li>
</ul>
</div><!--end of h_menu-->
</div>
CSS CODE:
#header{
margin:0px;
padding:0px;
height:40px;
width: 100%;
background-color:#fff;
}
#logophoto{
float:left;
margin-left:30px;
margin-top:1px
}
#h_menu{
float:right;
margin: 20px 3px 0 0;
padding:0;
border: solid red 1px;
}
#h_menu ul{
list-style-type:none;
margin:0;
padding:3px;
}
#h_menu li{
display:inline;
}
#header #h_menu li a {
list-style-type:none;
text-align:center;
font-weight: bold;
color:#333;
font-size:11px;
}
I hav put border red in h_menu to see the problem, u can find a small box on right side of h_menu box. I dont knw how it come that bug, pls help me to rectify this bug???? if possible, pls also tell me the reason why??







Bookmarks