Results 1 to 2 of 2

Thread: underline in the middle???

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

    Default underline in the middle???

    is anyone can help me with this??
    it doesn't happen old version of IE, after I upgrade to IE8, the underline goes in middle of the bars (like the picture):



    the code I am using:
    _________________________________________________________________________________________________
    Code:
    <link rel="stylesheet" type="text/css" href="jquerycssmenu.css" />
    
    <!--[if lte IE 7]>
    <style type="text/css">
    html .jquerycssmenu{height: 1%;} /*Holly Hack for IE7 and below*/
    </style>
    <![endif]-->
    
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
    <script type="text/javascript" src="jquerycssmenu.js"></script>
    _______________________________________________________________________________________________
    <div id="myjquerymenu" class="jquerycssmenu">
    <ul>
    <li><a href="#">Item 1</a></li>
    <li><a href="#">Item 2</a></li>
    <li><a href="#">Folder 1</a>
      <ul>
      <li><a href="#">Sub Item 1.1</a></li>
      <li><a href="#">Sub Item 1.2</a></li>
      <li><a href="#">Sub Item 1.3</a></li>
      <li><a href="#">Sub Item 1.4</a></li>
      </ul>
    </li>
    <li><a href="#">Item 3</a></li>
    <li><a href="#">Folder 2</a>
      <ul>
      <li><a href="#">Sub Item 2.1</a></li>
      <li><a href="#">Folder 2.1</a>
        <ul>
        <li><a href="#">Sub Item 2.1.1</a></li>
        <li><a href="#">Sub Item 2.1.2</a></li>
        <li><a href="#">Folder 3.1.1</a>
    		<ul>
        		<li><a href="#">Sub Item 3.1.1.1</a></li>
        		<li><a href="#">Sub Item 3.1.1.2</a></li>
        		<li><a href="#">Sub Item 3.1.1.3</a></li>
        		<li><a href="#">Sub Item 3.1.1.4</a></li>
        		<li><a href="#">Sub Item 3.1.1.5</a></li>
    		</ul>
        </li>
        <li><a href="#">Sub Item 2.1.4</a></li>
        </ul>
      </li>
      </ul>
    </li>
    <li><a href="#">Item 4</a></li>
    </ul>
    <br style="clear: left" />
    </div>
    css code:
    ___________________________________________________________________________
    Code:
    .jquerycssmenu{
    font: bold 12px Verdana;
    border-bottom: 1px solid black;
    padding-left: 15px; /*offset of tabs relative to browser left edge*/
    }
    
    .jquerycssmenu ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    }
    
    /*Top level list items*/
    .jquerycssmenu ul li{
    position: relative;
    display: inline;
    float: left;
    }
    
    /*Top level menu link items style*/
    .jquerycssmenu ul li a{
    display: block;
    background: white url(tintblue.gif) top center repeat-x;; /*background of tabs (default state)*/
    padding: 5px 7px 4px 7px;
    margin-right: 3px; /*spacing between tabs*/
    border: 1px solid #778;
    border-bottom-width: 0;
    color: #2d2b2b;
    text-decoration: none;
    }
    
    .jquerycssmenu ul li a:hover{
    background-image: url(tintbluedark.gif) /*tab link background during hover state*/
    }
    	
    /*1st sub level menu*/
    .jquerycssmenu ul li ul{
    position: absolute;
    left: 0;
    display: block;
    visibility: hidden;
    border-top: 1px solid black;
    }
    
    /*Sub level menu list items (undo style from Top level List Items)*/
    .jquerycssmenu ul li ul li{
    display: list-item;
    float: none;
    }
    
    /*All subsequent sub menu levels vertical offset after 1st level sub menu */
    .jquerycssmenu ul li ul li ul{
    top: 0;
    }
    
    /* Sub level menu links style */
    .jquerycssmenu ul li ul li a{
    font: normal 13px Verdana;
    width: 160px; /*width of sub menus*/
    background: white;
    color: black;
    padding: 4px 5px;
    margin: 0;
    border-top-width: 0;
    border-bottom: 1px solid black;
    }
    
    .jquerycssmenu ul li ul li a:hover{ /*sub menus hover style*/
    background: #eff9ff;
    color: black;
    }
    
    /* ######### CSS classes applied to down and right arrow images  ######### */
    
    .downarrowclass{
    position: absolute;
    top: 7px;
    right: 5px;
    }
    
    .rightarrowclass{
    position: absolute;
    top: 5px;
    right: 5px;
    }
    Last edited by jscheuer1; 04-11-2010 at 04:53 AM. Reason: format code/crop image

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    IE5??!!?? Wow. Anyway, have a link to the page? there is more than just the menu causing a problem but would need to identify it's..err... identifier.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

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
  •