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

input type style. But only certain types

Status
Not open for further replies.

avivit

Technical User
Jul 5, 2000
456
IL
How can I refer to a certain type of INPUT
regarding css?

input {font-family:...}

I need it only to work for type of text, button.
No radio for example.

Any idea?
Thanks...
 
im pretty sure that browser's current support of css won't let you do this. just make a class that takes away the input styles and add it to the elements you dont watn styled jaredn@subdimension.com -
 
jaredn is absolutely right. just make a class let's say
Code:
input.noRadio {color:orange;}
and then apply it to all the controls that you want to have this formatting:
Code:
<input type=&quot;text&quot; class=&quot;noRadio&quot;>
. It is cumbersome, but there is no work-around. I wish they introduced pseudo-classes like they ddi for active and visited links (maybe CSS3 will take care of that?). ---
---
 
Thanks.
I really wanted to avoid classes, but I guess
it's impossible.
:)
 
just for the record, supposedly this works in netscape 6:

<style>
INPUT[type=text]{somestyle !important}
</style> jaredn@subdimension.com -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top