is there something like a wrap-line selector in css?
Im using CSS-Flexbox for a layout with the wrap option.
I do not know how many lines I have beforehand but at every newline (every wrap) the pseudo selector "before" should NOT insert content. Else it should insert some content.
Here is an example of the problem im facing: Just copy this code into JS-Fiddle:
.items {
background-color: yellow;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
justify-content: flex-start;
max-width: 400px;
}
.item {
position: relative;
padding: 0.25rem 0.5rem;
display: block;
border: 1px solid red;
}
.item:first-of-type:before {
content: '';
}
.item:before {
content: '\01F354';
}
<div class="items">
<div class="item">
item 1
</div>
<div class="item">
item 2
</div>
<div class="item">
item 3
</div>
<div class="item">
item 4
</div>
<div class="item">
item A
</div>
<div class="item">
item B
</div>
<div class="item">
item C
</div>
<div class="item">
item D
</div>
</div>
My aim is that in the second line for the first item should not be a burger icon.