![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I needed to to do a quick width set for form input type="text", So: input{ width: 200px; } That also styled all my radio buttons! Is it possible to set a style for just one type? |
#3
| |||
| |||
|
|
I needed to to do a quick width set for form input type="text", So: input{ width: 200px; } That also styled all my radio buttons! Is it possible to set a style for just one type? |
#4
| |||
| |||
|
|
I needed to to do a quick width set for form input type="text", So: input{ width: 200px; } That also styled all my radio buttons! Is it possible to set a style for just one type? |
#5
| |||
| |||
|
|
On 2008-11-17, Jeff wrote: I needed to to do a quick width set for form input type="text", So: input{ width: 200px; } That also styled all my radio buttons! Is it possible to set a style for just one type? Yes. Add a class to your text input and style that. HTML: <input class="text" .... |
|
CSS: input.text { width: 15em; } (I would avoid using px to set the width.) |
#6
| |||
| |||
|
|
Is it possible to set a style for just one type? Yes input[text] {...} |
|
But, before you get too excited, realize that IE does not support attribute selectors... |
![]() |
| Thread Tools | |
| Display Modes | |
| |