Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Help with displaying information using css and cinditional comments

  1. Mar 15, 2007 #1
    Good evening, morning, or what-not time it is in your present proximity. I've been trying to find a way to display some information in a drop down menu in IE for the past while and haven't been able to come up with a solution, it works fine in firefox and netscape.

    HTML code:

    <div class='menu'>
    <ul>
    <li><a class='hide' id='activeLink' href='index[2].htm'>Home
    <!--[if gt IE 6]>
    <a id='activeLink' href='index[2].htm'>Home
    <![endif]-->
    <ul id='HomeSub'>
    <li><a href='#'>sub</a></li>
    <li><a href='#'>sub</a></li>
    <li><a href='#'>sub</a></li>
    </ul>
    <!--[if gt IE 6]>
    </a>
    <![endif]-->
    </a></li>

    After that there is some more code that is very similar to that. Sorry if this is a simple question, haven't worked with conditional comments before.

    The CSS code I tried to display it were:

    .menu ul li a.hide a:hover ul {
    display: block;
    position: absolute;
    left: 0px;}

    .menu ul li a:hover ul#HomeSub {
    left: -30px;
    width: 100px;}
     
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Help with displaying information using css and cinditional comments
  1. HTML + Javascript + CSS (Replies: 11)

  2. Inline css (Replies: 1)

Loading...