User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Jun 2006
Location: U.S.A California
Posts: 115
Reputation: chunkmartinez is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
chunkmartinez's Avatar
chunkmartinez chunkmartinez is offline Offline
Junior Poster

css

  #1  
Nov 25th, 2006
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:
MARTINEX();
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
Staff Writer
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: css

  #2  
Nov 25th, 2006
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!
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Jun 2006
Location: U.S.A California
Posts: 115
Reputation: chunkmartinez is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
chunkmartinez's Avatar
chunkmartinez chunkmartinez is offline Offline
Junior Poster

Re: css

  #3  
Nov 25th, 2006
THANX

so the last element is the one to be modified?
also, what does an (,) implicate?
MARTINEX();
Reply With Quote  
Join Date: May 2006
Location: New Jersey
Posts: 1,422
Reputation: stymiee is on a distinguished road 
Rep Power: 5
Solved Threads: 34
Moderator
Staff Writer
stymiee's Avatar
stymiee stymiee is offline Offline
He's No Good To Me Dead

Re: css

  #4  
Nov 25th, 2006
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
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,892
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 110
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: css

  #5  
Nov 25th, 2006
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
Reply With Quote  
Join Date: Jun 2006
Location: U.S.A California
Posts: 115
Reputation: chunkmartinez is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 0
chunkmartinez's Avatar
chunkmartinez chunkmartinez is offline Offline
Junior Poster

Re: css

  #6  
Nov 26th, 2006
Ok, i get it. thanx for the help!
MARTINEX();
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: css

  #7  
Nov 29th, 2006
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?
Last edited by MattEvans : Nov 29th, 2006 at 10:22 pm.
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 8:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC