Log in

View Full Version : ie displays small arrows before and after <li> tag



nashsaint
10-06-2010, 09:27 PM
Hi,

This is how the code looks like:

<div class="menu">
<ul>
<li>Home</li>
<li>About</li>
</ul>
</div>

and this is the css

.menu {font-size: 12px; margin-left: 12px; }
.menu li {float: left; margin: 0 0; position: relative;}

This displays great in firefox and other browsers EXCEPT ie. ie displays a small greater than sign before and after EACH <li>.

I have attached the first link to illustrate.

http://img111.imagevenue.com/loc187/th_00258_arrows_122_187lo.JPG

thanks for your help.

bluewalrus
10-07-2010, 12:30 AM
I don't have IE but as far as I know IE doesn't just put random symbols into your code. It must be coming from somewhere else can you post a link or your whole code?

It could be related to a list-item-type but I don't know of a type that puts those in.

davelf
10-07-2010, 02:40 AM
i think it's the background-images, or may be there's another code that have the same class like you use in that button style.:)

nashsaint
10-07-2010, 07:11 AM
I don't have IE but as far as I know IE doesn't just put random symbols into your code. It must be coming from somewhere else can you post a link or your whole code?

It could be related to a list-item-type but I don't know of a type that puts those in.

I think you're right but i didn't find anything that can cause this, hope you can help. this is the css codes for the entire menu

#access {
background: transparent;
display: block;
float: left;
margin: 0 auto;
width: 840px;
font-weight: bold;
}
#access .menu-header,
div.menu {
font-size: 13px;
margin-left: 12px;
width: 928px;
}
#access .menu-header ul,
div.menu ul {
list-style: none;
margin: 0;
}
#access .menu-header li,
div.menu li {
float: left;
position: relative;
}
#access a {
color: #aaa;
display: block;
line-height: 38px;
padding: 0 10px;
text-decoration: none;
}
#access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
display: inline;
position: absolute;
top: 38px;
left: 0;
float: left;
width: 180px;
z-index: 99999;
}
#access ul ul li {
min-width: 180px;
}
#access ul ul ul {
left: 100%;
top: 0;
}
#access ul ul a {
background: #333;
line-height: 1em;
padding: 10px;
width: 160px;
height: auto;
}
#access li:hover > a,
#access ul ul :hover > a {
background: none;
color: #A8D4FF;
}
#access ul li:hover > ul {
display: block;
}
#access ul li.current_page_item > a,
#access ul li.current-menu-ancestor > a,
#access ul li.current-menu-item > a,
#access ul li.current-menu-parent > a {
color: #fff;
}
* html #access ul li.current_page_item a,
* html #access ul li.current-menu-ancestor a,
* html #access ul li.current-menu-item a,
* html #access ul li.current-menu-parent a,
* html #access ul li a:hover {
color: #fff;
}

ShakaDula14
10-13-2010, 05:46 AM
Hi,

This is how the code looks like:

<div class="menu">
<ul>
<li>Home</li>
<li>About</li>
</ul>
</div>

and this is the css

.menu {font-size: 12px; margin-left: 12px; }
.menu li {float: left; margin: 0 0; position: relative;}

This displays great in firefox and other browsers EXCEPT ie. ie displays a small greater than sign before and after EACH <li>.

I have attached the first link to illustrate.

http://img111.imagevenue.com/loc187/th_00258_arrows_122_187lo.JPG

thanks for your help.

have you tried list-style-type:none; in your CSS?

http://www.w3schools.com/css/pr_list-style-type.asp