Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-06-2002, 04:23 AM   PM User | #1
gorilla1
Regular Coder

 
Join Date: Jun 2002
Posts: 544
Thanks: 0
Thanked 0 Times in 0 Posts
gorilla1 is an unknown quantity at this point
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
gorilla1 is offline   Reply With Quote
Old 07-06-2002, 05:22 AM   PM User | #2
boxer_1
Regular Coder

 
Join Date: May 2002
Location: Maine, USA
Posts: 574
Thanks: 0
Thanked 0 Times in 0 Posts
boxer_1 is an unknown quantity at this point
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 .
__________________
boxer_1
CodingForums Moderator
"How did a fool and his money get together in the first place?"

Last edited by boxer_1; 07-06-2002 at 08:08 AM..
boxer_1 is offline   Reply With Quote
Old 07-06-2002, 01:09 PM   PM User | #3
gorilla1
Regular Coder

 
Join Date: Jun 2002
Posts: 544
Thanks: 0
Thanked 0 Times in 0 Posts
gorilla1 is an unknown quantity at this point
Ah, ok. I did not realize that. Thanks.

G
gorilla1 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:51 AM.


Advertisement
Log in to turn off these ads.