0

Hi, im not really new to css, but i dont really understand this:

table table table table tr tr td,div{}

This exact peice is not the part i need help with, i just dont understand what it means to have multiple table or tr or td's here
but dont get me wrong, i completely understand this:

table{} or
.element{} or
#element{}.                

just not this-

table table tr td{}

Edited by pyTony: fixed formatting

4
Contributors
6
Replies
7
Views
10 Years
Discussion Span
Last Post by MattEvans
0

It means to style a DIV that is inside of a TD that is inside of a TR that is inside of a TR that is inside of a table that is inside of a table that is inside of a table.

That has to be a tag soup!

0

THANX

so the last element is the one to be modified?
also, what does an (,) implicate?

0

Oops, missed that comma. Change my answer to:

style all DIVs and a TD that is inside of a TR that is inside of a TR that is inside of a table that is inside of a table that is inside of a table

0

For example:

.box { } <= style all tags with the box class this way

.box div { } <= style all div tags that are contained within an element with the box class this way

0

Direct child selectors are interesting:

div.parent>div.child{}

Will apply to all divs of class child within divs of class parent, BUT only if they are direct children.

However: table>tr>td , doesn't work, unless you use: table>tbody>tr>td ... REGARDLESS of whether or not you have a tbody tag in your markup.

Rude, no?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.