I'm looking to apply font-variant: small-caps
specifically to the text within a TD
However, when using the CSS code below, it ends up applying small-caps to all content inside the TD:
td {
font-variant: small-caps;
}
My goal is to have small-caps applied only to the text inside a TD that does not include any a href
or input
elements. Unfortunately, I am unable to use classes in this scenario.
I attempted the following approach:
td:not(a) {
font-variant: small-caps;
}
However, this did not yield the desired outcome. Is there a way to achieve this?
Thank you.