I have a html like this:
<div class="portfolio-descr">
<span class="posted-in"></span>
<h3><a href="">Name</a></h3>
Some text <!-- HIDE THIS -->
</div>
I want to hide Some text but not the <h3> tag, purely with CSS like this:
.portfolio-descr:not(h3) {
display:none;
}
But all the elements are hidden.
Some textin some tag? P.S you probably meant to write.portfolio-descr *:not(h3) { ... }