Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Split CSS menu problem

    I am using css to style a menu, which is built along these lines:
    <tr id="theMenu">
    <td width="120"><a href="something.html">something</a></td>
    <td .... etc.

    If I want part of the menu on one area of the page and the other part somewhere else, I can just set up another table and again use id="theMenu" on the TR, as above. At least, this works in IE. NS4 gets the first piece of the menu right, but ignores the css styling on the second piece. I could simply set up a different class for the second menu piece, but is there any other way to get it to work in NS too?

    G

  • #2
    Regular Coder
    Join Date
    May 2002
    Location
    Maine, USA
    Posts
    574
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Since NS 4x has limited support of the ID selector, you might try using the class selector (as you mentioned) for NS4x compatibility (<tr class="theMenu"...>).

    Then, of course, you would need to set the class selector in your style sheet:

    .theMenu {Blah: blah;} for NS 4x as opposed to #theMenu {Blah: blah;}...Just a thought .
    Last edited by boxer_1; 07-06-2002 at 08:08 AM.
    boxer_1
    CodingForums Moderator
    "How did a fool and his money get together in the first place?"

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ah, ok. I did not realize that. Thanks.

    G


  •  

    Posting Permissions

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