...

View Full Version : Link won't float in NS?



gorilla1
07-09-2002, 02:38 AM
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>

adios
07-09-2002, 03:46 AM
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


<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>

gorilla1
07-09-2002, 04:19 AM
Hey Adios...

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

G



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum