Results 1 to 17 of 17

Thread: Css problems with NS6

  1. #1

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772

    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?
    Alcohol & calculus don't mix.
    Never drink & derive.

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    Can you post the code that's giving you the trouble?


    Chris
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  3. #3
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    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
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  4. #4

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Here's the code:
    Alcohol & calculus don't mix.
    Never drink & derive.

  5. #5
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    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
    Chris

    VB 6.0 Calendar App Video Gamers Group
    Don't forget to rate people if they helped you.

  6. #6

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    No, I don't have Netscape 4. I did try the code, same result...good in IE, not in NS.
    Alcohol & calculus don't mix.
    Never drink & derive.

  7. #7
    scoutt
    Guest
    hey Wynd..

    change the width statement in your .mainNavBoxLink tag and make it 150 instead of 100%

  8. #8

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    That doesn't work either...
    Alcohol & calculus don't mix.
    Never drink & derive.

  9. #9
    scoutt
    Guest
    it worked for me on NS4.7 I think I messed up. make it 150px instead of 100%, sorry

  10. #10

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Still doesn't work. I can't believe this is so hard.
    Alcohol & calculus don't mix.
    Never drink & derive.

  11. #11
    scoutt
    Guest
    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.

  12. #12

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    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
    Alcohol & calculus don't mix.
    Never drink & derive.

  13. #13
    scoutt
    Guest
    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.

    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

  14. #14

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Ok, here it is:
    Alcohol & calculus don't mix.
    Never drink & derive.

  15. #15
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    increadibly, in this instance, NS supports the standard better than IE.

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

  16. #16

    Thread Starter
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Don't get your hopes up
    Alcohol & calculus don't mix.
    Never drink & derive.

  17. #17
    PowerPoster sail3005's Avatar
    Join Date
    Oct 2000
    Location
    Chicago, IL, USA
    Posts
    2,340
    yes, this is known to happen once every few years

    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA
    USAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSAUSA

Posting Permissions

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



Click Here to Expand Forum to Full Width