View Full Version : Inputs and css

11-22-2002, 11:08 AM
I have a form with several buttons styled in css (.b1 {font:bold 12 verdana;text-align:center;width:85;height:25;}). The problem is, I also have a text input box which needs to be size=20. If I could find a way to declare this text box size in css, I could save a lot of code by using input {font:bold 12 verdana;text-align:center;width:85;height:25} once rather than using class="b1", class="b2", etc. each time one of several buttons are styled.

Any ideas out there?

Thanks :p

11-22-2002, 06:34 PM
isnt the default size of the input 20 anyway?
width:155 matches the size

11-22-2002, 10:02 PM
LMAO! Umm...ok...I guess I shouldn't code at 3 in the mornin'...Thanks http://geocities.com/zoobie007/rotflmao.txt

11-22-2002, 11:28 PM

If I declare on my sheet that input {border-color:white;}, this is usually overridden by an inline class .txt {border-color:none;}. However, in this case (IE) applied to a textbox, it didn't work even though it's W3C.

I found that .txt {border-color:transparent;} did, however, work and shows the default border. :p