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

How do I set property of all Input Tags 1

Status
Not open for further replies.

LyndonOHRC

Programmer
Sep 8, 2005
603
US
I am trying to set the properties of all Input tags where type is text. I'm missing something here and appreciate any help.

This method works but I'm trying to use a style tag to set these properties for all input tags on my site:
Code:
<input name="ssn" size="11" type="text" style="font-size: 14px;  line-height: 14px; height: 17px;">

This is the style tag method, I found on w3Schools, but it's not changing the properties:
Code:
<style type="text/css">
	input[type="text"] {
		font-size: 14px;  
		line-height: 14px; 
		height: 17px;
	}
</style>

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
I see there are browser issues with this. Thanks, I'll just use a class.

I happened to have been using IE7 to test, and it still didn't work. If my code was correct then this might be important to some trying to use this method....

Thank

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
This technique works in IE7. I have tested it myself. Maybe you did not have a proper doctype on your page?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top