-
Css problems with NS6
I am trying to make a menu bar in a table, and I want the links to take up the whole width of the table. In IE 5.5 it works fine, but in NS6 the links are only as wide as the text in them. I am trying to use the CSS width attribute (width: 100%; ) but it is not working. Can anyone help?
-
Can you post the code that's giving you the trouble?
Chris
-
Are you using:
<style>
td {width:100%;}
</style>
If this is not working there might be a work-around. I don't have NS6 installed here but you might try:
<td WIDTH = "100%"><a HREF = "myLink.html"><div WIDTH = "100%">MyLink</div></a></td>
Chris
-
1 Attachment(s)
-
That's strange...
It should be working. I can't see NetScape removing this attribute. Do you have NS4 to see if it works there? Did you try the code I posted above yet?
Chris
-
No, I don't have Netscape 4. I did try the code, same result...good in IE, not in NS.
-
hey Wynd..
change the width statement in your .mainNavBoxLink tag and make it 150 instead of 100%
-
That doesn't work either...
-
it worked for me on NS4.7 I think I messed up. make it 150px instead of 100%, sorry
-
Still doesn't work. I can't believe this is so hard.
-
well I don't know because it worked fine for me on Ns4.7 and all I did was change the 100% to 150px and it made the text go all the way like in IE. The only problem I seen was that the text in NS was not hyperlinked like it was in IE.
sorry I tried.
I will stare at it more later when I get home. don't have NS here at work.
-
Stare no more friend, i fixed it :)
What I did was, I had to add "display: block" to the link CSS definition because <a> isn't a block tag, and that caused the link to go over the side of the table, so I took out "width: 100%" and all is now good. Thanks for trying though :)
-
my eyes, my eyes I can't see. big spots white and grey. oh crap wait, what's that..... crunch....ouch.... hey I can see again. :D
cool glad you got it. my way did fix it to a point but not all the way. if you don't mind can you post it again so I can see the difference. thanks Wynd
-
1 Attachment(s)
-
increadibly, in this instance, NS supports the standard better than IE. :D
-
Don't get your hopes up :p
-
yes, this is known to happen once every few years