Results 1 to 5 of 5

Thread: ie displays small arrows before and after <li> tag

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default ie displays small arrows before and after <li> tag

    Hi,

    This is how the code looks like:
    Code:
    <div class="menu">
    	<ul>
    		<li>Home</li>
    		<li>About</li>
    	</ul>
    </div>
    and this is the css
    Code:
    .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.



    thanks for your help.

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    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.
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Jul 2009
    Location
    Binus University
    Posts
    472
    Thanks
    78
    Thanked 21 Times in 21 Posts

    Default

    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.
    _____________________

    David Demetrius // davejob
    _____________________

  4. #4
    Join Date
    Oct 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by bluewalrus View Post
    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
    Code:
    #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;
    }

  5. #5
    Join Date
    Oct 2010
    Location
    Canada
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by nashsaint View Post
    Hi,

    This is how the code looks like:
    Code:
    <div class="menu">
    	<ul>
    		<li>Home</li>
    		<li>About</li>
    	</ul>
    </div>
    and this is the css
    Code:
    .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.



    thanks for your help.
    have you tried list-style-type:none; in your CSS?

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •