The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › table tr> td- does not give me the result I want
Hello everyone, I want to color the background of every first td in my table. using the code:
table tr> td { background: lightgreen; }
The code colors all tds in the table. Can someone explain why? and also help me to produce the code that I am after.
My code is below
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Project 1-2012 Category Addition Multiplication Division Substraction Question 4+5= 4*5= 10/2= 10-2=
I’m not really sure why this isn’t working. Instead, you could use first-child http://jsfiddle.net/3EdFL/
Thank you all so much four your help!!!!!