Is there a way to select items that may contain text?
Something like that:
*:text {
font-size: 12px;
}
I want to use it for mine reset.css, but I can’t find a way to do this, so now I use this code:
* {
font-size: 12px;
}
This solution works for all text elements (e.g. STRONG, P, A, etc.), but also applies this style to non-text elements such as IMG, OBJECT and others.
So I'm wondering if there is another solution for setting CSS properties for all text elements, but nothing else.
source
share