Quantcast
Channel: Hide element, but show CSS generated content - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Brenden for Hide element, but show CSS generated content

$
0
0

I took a similar approach as suggested here with visibility, but that still has a content box.

My solution is to simply use font-size to hide the target text.

span {    font-size: 0;}span:before {    font-size: 16px;}

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>