Let's say we have:
<div id="view-item-hero-info">
<h2>{{name}}</h2>
<h4>{{location}}</h4>
<h3>
<span id="view-item-hero-header-score">
You scored {{userScore}}pts
</span>
</h3>
{{description}}
</div>
Is there a way I can hide the text directly inside #view-item-hero-info
? I know I can use text-indent
but is there another, nicer, way?
Note: I don't want to hide the element, just everything inside it.
Note 2: Hiding all the elements within #view-item-hero-info
is fine, I can use #view-item-hero-info > * { display: none }
but then the text directly within #view-item-hero-info
is still visible. I need #view-item-hero-info
to remain visible so that its background can be seen but the text inside it must be hidden.