Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] IE8 have problem to work with my CSS code

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #173916
    jaden5165
    Participant

    html:

    <head>
      <title>
          VTPSim Pattern Validation Tool
      </title>
      <link rel="stylesheet" type="text/css" href="test1.css"/>
      <link rel="stylesheet" type="text/css" href="test2.css"/>
      <!--[if lt IE 9]>
          <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
      <![endif]-->
    
    </head>
    <body>
     <nav id="top-menu">
      <ul>
            <li> <a class="ex1" href="http://vtpsim.intel.com/index.htm">Home</a> </li>
            <li> <a class="ex2" href="http://vtpsim.intel.com/vtpsimmodule.htm">VTPSim Module</a> </li>
            <li> <a class="ex3" href="http://vtpsim.intel.com/trainingref.htm">Training & Reference</a> </li>
            <li> <a class="ex4" href="http://vtpsim.intel.com/toolrelease.htm">Tools Release Path</a> </li>
            <li> <a class="ex5" href="http://vtpsim.intel.com/Indicator/quality.htm">Software Quality Indicator</a> </li>
            <li> <a class="ex6" href="http://vtpsim.intel.com/Contact.htm">Contacts Us</a> </li>
      </ul>
     </nav>

    CSS:

    nav#top-menu {
        width: 100%;
        height: 65px;
        background-color: #531;
        margin: 0;
        padding: 0;
    }
    
    #top-menu ul {
        display: block;
        list-style-type: none;
        width: 600px;
        margin: 0 auto;
        padding: 0;
    }
    
    #top-menu ul li {
        margin: 0;
        padding: 0;
    }
    #top-menu ul li a {
        display: block;
        float: left;
        max-height: 25px;
        width: 100px;
        margin: 0;
        padding: 5px 0;
        font-family: tahoma, sans-serif;
        font-size: 20px;
        text-align: center;
        background-color: #531;
        /*color: #da1;*/
        /*border-bottom: #531 solid 2px;*/
    }
    /*#top-menu ul li a:hover { border-bottom: #da1 solid 2px; }*/
    #top-menu ul li a.ex1:hover 
    {    
        text-decoration: underline;
        border-bottom: none solid 2px; 
    }
    #top-menu ul li a.ex2:hover 
    {
        text-decoration: underline;
        border-bottom: none solid 2px; 
    }
    #top-menu ul li a.ex3:hover 
    {
        text-decoration: underline;
        border-bottom: none solid 2px; 
    }
    #top-menu ul li a.ex4:hover 
    {
        text-decoration: underline;
        border-bottom: none solid 2px; 
    }
    #top-menu ul li a.ex5:hover 
    {
        text-decoration: underline;
        border-bottom: none solid 2px; 
    }
    #top-menu ul li a.ex6:hover 
    {
        text-decoration: underline;
        border-bottom: none solid 2px; 
    }

    Wording in the menu”nav” doesnt look good in IE but look good in Chrome.WHat should I do with my CSS script.Thanks.

    #173920
    Paulie_D
    Member

    Wording in the menu”nav” doesnt look good

    What does “doesn’t look good”mean?

    Frankly, if the menu shows up in IE8…you are 90% of the way there.

    BTW, there’s a lot of repeated CSS in there that could be removed.

    #173922
    jaden5165
    Participant

    IE picture
    Chrome picture

    I have no idea why the wording in IE become like that. :(

    #173929
    Paulie_D
    Member

    A live link would be useful but it’s looking like a float issue or something at the moment.

    The text seems to be rendering OK, but it’s the alignment that’s off.

    #173932
    jaden5165
    Participant

    So do you have any idea what should i change in my css script?

    #173942
    Senff
    Participant

    Like Paulie said, a live link would be helpful.

    Try adding float:left to #top-menu ul li maybe.

    #173943
    jaden5165
    Participant

    Thanks Senff.That solve the problem.Thank you very much :)

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘CSS’ is closed to new topics and replies.