Hi please see the following two html codes:
<div class="price">
2
</div>
And:
<div class="price">
<div class="symbol">£</div> 2
</div>
So in the first one I want to add £ to the price so I am using this CSS
.price::before {
content: "£";
}
And it is working . But I don't want this if .symbol class is already present in .price class. Is there is any way to do this in CSS?
.price > .symbol {display: none;}? This way you always showing the symbod via css only