Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove string that dosn't have an html tag using CSS

Tags:

html

css

I need to remove strings that do not have an html tag.

For example :

<div class="A">
  <a href="#" class="link">keep this</a> and i want to remove this 
</div>

Can I do this using only css ?

like image 568
Sushi Avatar asked Jun 08 '16 13:06

Sushi


1 Answers

Maybe you can use font-size ::

.A {
  font-size: 0;
}
.A a {
  font-size: 20px;
}
<div class="A">
  <a href="#" class="link">keep this</a> and i want to remove this
</div>
like image 155
DaniP Avatar answered Oct 12 '22 21:10

DaniP