![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way to set default styling on an input of a particular type, much the same way as you might specify a style rule for all p, div, td, h1, etc.? In other words, is there a way to specify this in css without having to explicitly set a class in the html? |
|
I'd like to specify a style rule that would only apply to (for example) all inputs of type "radio", and another that would only apply to all inputs of type "text", but I don't want to class every instance of these inputs in a page. Thanks. |
#3
| |||
| |||
|
|
Is there a way to set default styling on an input of a particular type, much the same way as you might specify a style rule for all p, div, td, h1, etc.? *In other words, is there a way to specify this in css without having to explicitly set a class in the html? I'd like to specify a style rule that would only apply to (for example) all inputs of type "radio", and another that would only apply to all inputs of type "text", but I don't want to class every instance of these inputs in a page. Thanks. |
#4
| |||
| |||
|
|
On May 13, 5:54*pm, David Stone <no.em... (AT) domain (DOT) invalid> wrote: Is there a way to set default styling on an input of a particular type, much the same way as you might specify a style rule for all p, div, td, h1, etc.? *In other words, is there a way to specify this in css without having to explicitly set a class in the html? I'd like to specify a style rule that would only apply to (for example) all inputs of type "radio", and another that would only apply to all inputs of type "text", but I don't want to class every instance of these inputs in a page. Thanks. If needing to work in ie6 is not an issue then you can use input [type="text"] as your CSS selector. |
![]() |
| Thread Tools | |
| Display Modes | |
| |