Using css selector how am i supposed to write a selector so that only table rows that have data display cursor as pointer. I tried below but nope
table tbody tr:not(tr>th)
is this cross browser and works event in IE6?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That is not a valid CSS selector; you can’t put combinators inside
:not().Your best bet is to put header rows (i.e.
<tr>elements that contain<th>elements) inside a<thead>, leave the rest of the rows in your table’s<tbody>, and simply use this:If you can’t modify your HTML, it’s not possible with CSS selectors alone, especially not with your requirement of supporting IE6. Use JavaScript instead; here’s an obligatory jQuery example: