css/js issues with ie

Discussion in 'CSS' started by TStewartFan, Feb 26, 2006.

  1. #1
    Can anyone have a look at the below code and let me know what I am doing wrong. It views perfectly in firefox but not at all in ie :( Am sure it has something to do with the js because the css looks to be fine :) Thanks for your help!

    HTML:
    
    <li class="to-left">
    <ul class="out standingsRow" onmouseover="this.className = 'hover standingsRow';" onmouseout="this.className = 'out standingsRow';" onclick="window.location.href='http://www.ddkarting.com/daredevin.htm';">
    <li class="One">1</li>
    <li class="Two">&nbsp;</li>
    <li class="One">&nbsp;</li>
    <li class="Two">&nbsp;</li>
    <li class="One Red">0</li>
    </ul>
    </li>
    
    Code (markup):
    CSS:
    
    #standingsAll ul.standingsRow li.One {display:block;width: 50px;}
    #standingsAll ul.standingsRow li.Two {display:block;width: 130px;}
    .out {background-color: #fff;color: #1f0e82;cursor: hand;text-decoration:none;}
    .hover {background-color: #1f0e82;color: #fff;cursor: hand;text-decoration: none;}
    #standingsAll ul.standingsRow li {float: left;padding: 0;font-family:Arial,Geneva,sans-serif;font-size: 10px;font-weight:bold;line-height: 18px;text-align: left;padding-left: 5px;border-top: 1px solid #1f0e82;border-left: 1px solid #1f0e82;border-bottom: 1px solid #1f0e82;border-right: 1px solid #1f0e82;}
    #standingsAll ul.standingsRow {display:table-cell;list-style-type: none;padding: 0;margin: 0;border-bottom: 1px solid #1f0e82;}
    
    Code (markup):
    Code in action can be viewed at: http://www.ddkarting.com/kidkart.htm

    In Firefox the color change onmouseover works but in ie it color changes everything to white :( Thanks for your help you guys.
     
    TStewartFan, Feb 26, 2006 IP
  2. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #2
    Colleen, Feb 28, 2006 IP