Julian Tulip's Licorice wrote:
> I am trying to learn some of the little things i missed, so sorry if this
> seems like a silly question.
>
The list is here to answer questions for those of all walks of life so
no apology necessary :)
> But I see this sometimes:
>
> form#search {color: #fff;}
>
> The hash is right up against the form, and my understanding is the result is
> different than the former example? why is the space removed and what does
> this do?
>
form #search {color: #fff;} /* This will make any element with an id of
'search' render with white font if it is in a form element */
form#search {color: #fff;} /* This will make any element with an id of
'search' that is, itself, a form element render with white font */
I find this most useful with classes since there are, conceivably, some
class names that you'd like to re-use if appropriate such as:
class='last'
class='first'
class='clear'
etc.
Qualifiers add a way of targeting these elements without having to add
an id / class to a higher level container (thus resulting in cleaner code).
--
Thanks,
Jim
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/