html - Select specific td's with no id or classes -


i have got table 3 rows , 3 table data cells.

select first tr, first td, , b tags it:

tr + td b {}

select second tr, second td, , b tags it:

tr+tr > td+td b {}

i trying select them without nth-child because ie8 , earlier don't support it.

can fix selectors me, because think i'm doing wrong , it's not selecting them properly.

to make nth-child work in ie8, use like:

tr:first-child+tr    -> tr:nth-child(2) tr:first-child+tr+tr -> tr:nth-child(3) 

select first tr, first td, , b tags it:

tr:first-child td:first-child b {} 

select second tr, second td, , b tags it:

tr:first-child+tr td:first-child+td b {} 

jsfiddle

or can use js utility selectivizr.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -