File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes descentant selector? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "descentant selector?" Watch "descentant selector?" New topic
Author

descentant selector?

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
I want to confirm, if I write

it means apply the style to th, td element inside the table with class attribute equal to .detailTable, but EXCLUDE the table itself?
also, is the css type called descendent selector?

the complete html and css is as follow:
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are not correct

.detailTable th <-- match any th inside of an element that has a class detailTable
td <-- match ANY td on the page.

adding the comma is like doing




Eric
 
Don't get me started about those stupid light bulbs.
 
subject: descentant selector?
 
Similar Threads
table cells not aligning
CSS : z-index: property not working
Getting border to display within the td tag
upload file in jsp
HTML Table Column Widths