Jump to content

Th/td Issues


taith

Recommended Posts

hello,

im looking to add some automation to my css... what im looking for, eventually, is for it to automatically detect when theres a th tag, and select the tds thereafter... however, for some reason, its not even detecting the tables with th's... what am i doing wrong?

 

<!DOCTYPE html>
<html>
<head>
<style type="text/css">
table~th{
background:red;
}
</style>
</head>
<body>
<table>
<tr>
 <th>test</th>
</tr>
<tr>
 <td>test2</td>
<tr>
</table>
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/268857-thtd-issues/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.