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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape and CSS

Status
Not open for further replies.

ChrisQuick

Programmer
Oct 4, 1999
144
US
I am using styles within a form to set the button width and color like so:

<INPUT TYPE=button STYLE=&quot;{background-color: blue; font-weight: bold; color: white; width: 150}&quot; NAME='cmdRefresh' id='cmdRefresh' VALUE='Show Legend...' OnClick=&quot;showNewLegendWindow();&quot;>


This works in IE but not in Netscape. Any workarounds?

Thanks chrisquick@aol.com
Geographic Information System (GIS), ASP, some Oracle
 
None of the style settings are working. i get just a plain old grey button of whatever size netscape arbitraily picks for it, with black text. chrisquick@aol.com
Geographic Information System (GIS), ASP, some Oracle
 
NS4- supports very little css when it comes to form elements. If its not working, it's porbably not your fault. You can try printing images for NS and buttons for IE. jared@aauser.com
 
This is a HTML/DHTML question, not a JavaScript question. You should post these types of questions in the HTML/DHTML forum in the future.

Like Jared said, NS simply does not support the styling or scripting of all of its objects, only a very limited subset. The only work around is to use an image <input type=&quot;image&quot; src=&quot;your_button.gif&quot;>
Sincerely,

Tom Anderson
CEO, Order amid Chaos, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top