Is there any way to select elements which may contains text?
Something like this:
*:text {
font-size: 12px;
}
I want to use it for my reset.css
, but I can't find a way how to do it, so for now I use this code:
* {
font-size: 12px;
}
This solution works for all text based elements (for example STRONG, P, A, etc.), but it also apply this style to non-text elements like IMG, OBJECT and others.
So I am wondering if is there any other solution to set CSS properties for all text based elements, but nothing else.