Does anyone know how I can use a variable CSS selector? For example, I want my CSS to grab a table id
attribute that's variable... something like:
<table id="table_1">
<thead>
</thead>
<tbody>
</tbody>
</table>
<table id="table_2">
<thead>
</thead>
<tbody>
</tbody>
</table>
<table id="table_3">
<thead>
</thead>
<tbody>
</tbody>
</table>
Now I want to grab the tables by their id
:
table#[INSERT VARIABLE TABLE ID HERE]{
margin: 0 auto;
border-collapse: collapse;
font-family: Agenda-Light, sans-serif;
font-weight: 100;
background: #333; color: #fff;
text-rendering: optimizeLegibility;
border-radius: 5px;
}
Thanks in advance!