CSS grouping
Posted: Mon May 22, 2006 12:47 pm
Say I have a FORM or a DIV and those elements have multiple sub-elements
Obvious a form might look something like:
I have given the FORM an id value of test
Is there anyway I can assign individual elements of the FORM unique properties?
Something like:
That way I can avoid having to assign a new ID or CLASS to every INPUT or whatever tag I have inside a parent/container tag???
Cheers
Obvious a form might look something like:
Code: Select all
<form id="test">
<input type="text" name="usr" />
<input type="password" name="pwd" />
<input type="submit" value="Submit Login" />
</form>Is there anyway I can assign individual elements of the FORM unique properties?
Something like:
Code: Select all
.test { font-family: "Verdana"; font-size: 8pt }
.test:input { border: 1px; }Cheers