Say I have the following...
td {
padding: 8px;
}
td a {
display: block;
padding: 8px;
width: 100%;
height: 100%;
}
I'd like to apply the first css code to all <td> elements that do not have <a> and I'd like to apply the second one to only those that do have <a>.
I tried the following:
td:not(a) {
padding: 8px;
}
td:not(td a) {
padding: 8px;
}
How can I make this work without adding classes to the elements?