PDA

View Full Version : borders



Vectar
April 25th, 2006, 03:21 AM
does anybody know how i can change border colors for input type fields or textarea fields ? can it be done with CSS ?

Ankou
April 25th, 2006, 03:38 AM
input, textarea{ border: 1px solid #f00; }

I don't think you can change select (drop down) menus with CSS in IE though. Radio button and check box support isn't all that great either. You can probably do a search at google and find more detailed answers for CSS form element support by browser. That or test the code on your computer with a few browsers to see if it's even something you want to worry about.

bwh2
April 25th, 2006, 03:41 AM
yes, it can be done with css. just make a class like <input type="..." class="myclass"> then define your .myclass in the css.

you could also just refere to it as input { ... } in the css.

meh, ankou beat me to the punch.

Vectar
April 25th, 2006, 03:41 AM
thanks for your help