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

    Link won't float in NS?

    In the code below, when run under NS4, if I leave out he float, it works fine, but with the float the link no longe acts like one. Is this just a NS bug with no way around it?

    G

    <div>
    <p><span style="float:right"><a href="#" onmouseover="javascript: playTune('stage/db/mussat.MID')" onmouseout="javascript: reset()"><img src="bgnotes9.gif" width=120 height=66 border=1 style="border-color:gold;"></a></span></p>
    </div>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    hey gorilla1...

    Probably a bug, NS4 very finicky with link CSS....try it in a class, applied directly to the <a>. Also: delete the javascript&#58; in those event handlers, it's unnecessary.

    http://www.richinstyle.com/bugs/netscape4b.html#float

    cya, adios

    Edit:
    <html>
    <head>
    <title>untitled</title>
    <style type="text/css">
    .rightAlign {text-align: right;}
    </style>
    </head>
    <body>
    <div>
    <p class="rightAlign">
    <a href="#"><img src="......." width=120 height=66 border=1 style="border-color:gold;"></a></p>
    </div>
    </body>
    </html>
    Last edited by adios; 07-09-2002 at 04:05 AM.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    553
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hey Adios...

    Yes, p align=right does work, but loses the benefit of the float :-(.
    So it goes.

    G
    Last edited by gorilla1; 07-09-2002 at 04:22 AM.


  •  

    Posting Permissions

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