tags:

views:

39

answers:

2

I am trying to style a web app that we don't have the source code too.

So I drilled down into the DOM, but right now the bottom border is being set on ALL the rows, I need only the first row.

#tableID tbody tr td table tbody tr
{
  border-bottom: solid 1px #cccccc; 
}

Is this possible?

+1  A: 

If you don't care about supporting IE6:

#tableID tbody tr td table tbody:first-child
{
  border-bottom: solid 1px #cccccc;
}
Barry
+1  A: 
#tableID tbody tr td table tbody tr:first-child { }

Should select the first chidld according to the CSS 2 selector specification.

See here for some information which browsers select the selectors.

Obalix
need to apply it to the th/td directly no the tr so:`#tableID tbody tr td table tbody > tr:first-child td, #tableID tbody tr td table tbody > tr:first-child th { }`
prodigitalson
prodogitalson, yup that did it!
Blankman