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

css input types

Status
Not open for further replies.

sysadmin42

Technical User
May 6, 2005
138
is there any way to specify a different style for each <input> type? My main issue is that I have made the text boxes with a 1px border, but then the radio buttons also have a border. I want to keep the text boxes as is, and eliminate the border around the radios, without necessarily having to specify a class.

example:
Code:
input {
	border: 1px solid #999999;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:10px;
}
 
Actually, there is:
Code:
input[type="text"] {
    border: 1px solid #999999;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:10px;
}
The bad part? IE definitely does not support this, Geckos do, but I am unsure of the other browsers. You're best of defining border to a class and adding the class to those elements you want to have special border. Or eliminate the border via class, if that is less work.
 
hmm... what I've done in the past was elimiate the border via class, since I use radios and checkboxes less. I'm just looking for a way around it. maybe the next version of IE...?
 
Heehee. Maybe. Though I would correct you in saying 'maybe the next version of IE that acknowledges the standards a little'. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top