radio buttons in Netscape

They have: 9 posts

Joined: Mar 2000

Anyone know how to get Netscape to draw a radio button surround colour correctly? For example, the following HTML produces a radio button inside a table cell. The button surround should be red in colour but instead Netscape punches a hole through to the white background, so it looks rubbish. Of course IE does it correctly. Is there some clever workaround?

<BODY BGCOLOR="white">
<TABLE BORDER="1" CELLPADDING="5">
<TD BGCOLOR="red">
<FORM>
<INPUT TYPE="radio" NAME="button1">The button
</FORM>
</TD>
</TABLE>

Ken Elliott's picture

They have: 358 posts

Joined: Jun 1999

Well I found a solution, didn't test it in all versions of NS though, just NS4.
Here's the html

code:

<BODY BGCOLOR="Red" BACKGROUND="http://www.real-world.cc/images/white.jpg">
<TABLE BORDER="1" CELLPADDING="5">
<TD BGCOLOR="Red" >
<FORM>
<INPUT TYPE="radio"  NAME="button1">The button
</FORM>
</TD>
</TABLE>
[/code]

In the head tag, I change the background color to red because that appears to be what NS uses for the bgcolor of the radio button. So inorder to return the background color to white. I created a 1x1 pixel .jpg which I would make a gif for size purposes(me:lazy). It is hosted on my website so just test the code while online.
I would also mess around with the table border colors as well because it inherits the background color of the document.

Hope that helps.

VulKen
Real-World.cc

[This message has been edited by VulKen (edited 13 March 2000).] 

Pimpin like a pimp with an electrofied pimpin machine!

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Net Mechanic's newsletter addressed this recently -- use CSS to change the background to the same as the table cell with SPAN.
http://www.netmechanic.com/news/vol3/no1.htm

hth,

Suzanne

------------------
Zero Cattle
Suzanne
Tables DeMystified

They have: 9 posts

Joined: Mar 2000

Hey, thanks for the replies and the netmechanic.com link, very helpful and much appreciated

They have: 231 posts

Joined: Feb 2000

I had this same problem for a script I made (NN only). When I added the style="background:#333333;" to one of the radio buttons, all the others changed too. Wierd.

:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.