View Full Version : multiple form styles

sir pannels
07-15-2008, 09:41 AM
hi all,

hopefully a quick one... I'm using in my css...

input{style stuff here...}

and that makes all of my form inputs that dont have a specified style.... the style where it says 'style suff here'.. thats all good..but i want two styles of form.. i want that one above.but also how do i do it so I can specify the class on the inputs... if i specifed class=input_b would the css be ...

input{style stuff here...}
input.input_b{other style stuff here...}


any info be great :) many thanks

07-15-2008, 10:00 AM

/*put some style for class input_b */

<input type="text" class="input_b" >
If we apply style directly on input selector, it'll become hard to control the styles of various types of inputs like text, button etc (since IE doesn't recognize selectors based on attributes )