• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

descentant selector?

 
peter tong
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic