Re: CSS Question
by Brian V Bonini <b-bonini(at)cox.net>
|
Date: |
16 Jul 2003 19:31:19 -0400 |
To: |
"Wanda J. Hall" <wanda(at)wandaweb.com> |
Cc: |
HWG Techniques <hwg-techniques(at)hwg.org> |
References: |
wandaweb |
|
todo: View
Thread,
Original
|
|
On Wed, 2003-07-16 at 18:55, Wanda J. Hall wrote:
> In my quest to learn CSS, I bought a book, "Eric Meyer on CSS," and am
> faithfully following along with lessons, page by page. On the subject of
> id's and selectors, I have this snippet of CSS:
>
> td#advert {width: 234px;}
> #content-top id {color: white; vertical-align: middle;}
> tr td#sidetop {background: #663300;)
>
> Now, I understand that an id is a label for a cell, table, table row, etc;
> and the definition given for the "#content-top...." is a "descendant
> selector: selects an element that's a descendant of another."
>
> I guess I'm not really understanding what this means. All the statements
> look pretty much alike and I don't understand why it wasn't written like the
> one's above and below it. I.E.: id#content-top.
>
> Can anyone clarify this for me??
Looks like a typo to me, I'm not aware of an "id" element perhaps Eric
meant #content-top .id {}
I would reference the recommendations for more info.
http://www.w3.org/TR/REC-CSS2/selector.html
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA