•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,758 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,690 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 862 | Replies: 6
![]() |
•
•
Join Date: Jun 2006
Location: U.S.A California
Posts: 115
Reputation:
Rep Power: 3
Solved Threads: 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{}
:mrgreen: :p :rolleyes:
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{}
:mrgreen: :p :rolleyes:
MARTINEX();
•
•
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation:
Rep Power: 5
Solved Threads: 34
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!
That has to be a tag soup!
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
•
•
Join Date: Jun 2006
Location: U.S.A California
Posts: 115
Reputation:
Rep Power: 3
Solved Threads: 0
•
•
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation:
Rep Power: 5
Solved Threads: 34
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
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
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,892
Reputation:
Rep Power: 32
Solved Threads: 110
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
.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
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Jun 2006
Location: U.S.A California
Posts: 115
Reputation:
Rep Power: 3
Solved Threads: 0
•
•
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation:
Rep Power: 5
Solved Threads: 47
Direct child selectors are interesting:
Will apply to all divs of class child within divs of class parent, BUT only if they are direct children.
However:
Rude, no?
div.parent>div.child{}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?
Last edited by MattEvans : Nov 29th, 2006 at 10:22 pm.
If it only works in Internet Explorer; it doesn't work.
![]() |
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Layout Tables to CSS (HTML and CSS)
- Layout in CSS (HTML and CSS)
- CSS center vertical (HTML and CSS)
- CSS Quicky (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Java script - wordwrap ?
- Next Thread: Css And Accessibility, How does everyone code for accessibility



Linear Mode