I\'m trying to hide some text inside an element using CSS by setting text-indent: -999px;. For some reason this doesn\'t work when I set
text-indent: -999px;
You can use line-height specifying a large value, say 100px for a 30px high container.
only works if your container is limited in size. you may have to specifically set height if it isn't yet.