Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS style for Form button

Status
Not open for further replies.

ChrisQuick

Programmer
Oct 4, 1999
144
0
0
US
I am trying to apply a style to a form button. This definition works fine in IE but doesn't seem to work at all in Netscape. I went to developer.netscape.com to research the property names while I was writing the code, so I don't know why it doesn't work.

Any suggestions?

Here is the style info:

<STYLE TYPE=&quot;text/css&quot;>
.msgBtn
{
background-color: #f8e858;
font-weight: bold;
color: #FF0000;
width: 300
}
</STYLE>


And here is the form:

<form id=&quot;messForm&quot; name=&quot;messForm&quot; action=&quot;#&quot;>
<input class=&quot;msgBtn&quot; type=&quot;button&quot; name=&quot;messageBtn&quot; value=&quot;Text Tools&quot; disabled>
</form>

cquick@geotg.com
Geographic Information System (GIS), ASP, some Oracle
 
i just read another thread with a similar problem ( table style in nn) and someone suggested trying background:#ffffff instead of background-color

hope that helps
 
Hi ChrisQuick!

Navigator4.x - no way!

But it works in Netscape6, and both versions of style: with background-color and background properties work the same.

Try to avoid using non-websafe colours.

Andrew | starway@mail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top