As I need to display menu list items as horizontal in IE7 but it is displayed vertically.
Menu list items:
This is the image where menu list items are displayed vertically.
If I use the
float:left
property then also it will not be displayed horizonatlly. What to do for this problem?
CSS is as follows:
.swMain ul.anchor {
display: inline-block;
list-style: none;
padding-left: 0px;
margin-top: 3px;
float:left;
}
.swMain ul.anchor li{
position:relative;
margin: 0;
padding: -10px;
padding-top:0px;
padding-bottom: 0px;
clear:both;
display:inline;
float:left;
}
.swMain ul.anchor li a {
display:inline;
margin:0;
padding:0px;
text-decoration: none;
outline-style:none;
}