Previous Message
Next Message

Re: [css-d] Why do this?

Sent by Head Dragon:) on 24 November 2002 22:10


That means only a td in a tr with the id set to mycell will make it 
happen that way.

Sometimes it helps to prevent an occurance of mycell in other places 
by nesting CSS code like that.

I have a page that uses a table to produce the effect of an open book 
that can expand down and still show all the seams and edges.  I kept 
seeing the little graphic pieces that make up the book appear to be 
loaded but not shown on pages without the table.

When I nested the HTML tags as tr td#backul for background upper left 
it stopped false loading the graphics.

At 10:30 AM +0000 11/8/02, [EMAIL-REMOVED] wrote:
>I've been reading Eric Meyer's "on CSS" book, and so far I'm pleased with
>it. Actually, it's great, and I'm sure it's going to be very useful. There
>is one thing that I don't understand. Take this line for example:
>
>tr td#mycell {background: #FFF;}
>
>Why add the tr at the beginning? It still works if it is removed. It doesn't
>seem to serve any purpose, and I can't find an explanation in the book. Can
>anyone explain why this is used?
>
>Lee


-- 
Sincerely,
Kid Stevens Webmaster Dragon Vision Design

"Warning,
Do not meddle in the affairs of Dragons.
They will make you crunchy and eat you with ketchup."
-Unknown Author
_______________________________________________
css-discuss [EMAIL-REMOVED]]
http://two.pairlist.net/mailman/listinfo/css-discuss
Sponsored by www.westciv.com - CSS resources | software | learning
Previous Message
Next Message

Message thread: