Reputation: 9184
Are there any good ways, to hide first
in div, but only first?
For example I have this structure:
<div class="lalala">
<div class="123">
dfsdfsdf
sdf sdf sd fsd f
</div>
<div class="456">
f dfgd
</div>
</div>
As result I must see:
<div class="lalala">
<div class="123">
dfsdfsdf
sdf sdf sd fsd f
Is it possible to do it in CSS only (and how?), or do I have to use JavaScript?
Upvotes: 1
Views: 1486
Reputation: 27833
I don't think there is a CSS way to do it.
With JavaScript it's fairly simple though:
var el = document.querySelector('.123');
el.innerHTML = el.innerHTML.replace(' ', '');
Upvotes: 4