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>