Is it possible to display:none text which is not in a tag?
I need to get rid of all the text in this div while preserving anything in .
However when I use this:
the text still remains. I can only use CSS for this, since it’s a userstyle. Is this possible?
Since you can’t select text nodes, one option would be to set the
font-size of the parent element to
0, and then re-specify a
font-size for the
Unfortunately, the down-side to this method, is that you will be unable to set the
font-size of the
a elements using relative
* * *
As a side note, it’s worth mentioning that you can also set the
visibility of the parent
footer element to
hidden, and then set the
visibility of the children
a elements to
This clearly doesn’t achieve the same effect as
display: block, but nonetheless, I thought it would be worth pointing out.