0
Well, I don’t know what title to ask, so if anyone wishes to edit I accept.
I have the following scheme:
I intend to do with the div itemsatual, have that limited width, but that the Divs, that are inside, ie the Divs item, once they reach the limit of Divs, that fit inside the div disappear. In other words, suppose there are only 10 Ivs, inside and in the code there are 14. There are only 10.
How can I do that?
My code:
HTML:
<div class="itemsatuais">
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
<div class="item">
</div>
</div>
CSS:
.itemsatuais{
background-color:#263238;
width:95%;
display:flex;
justify-content:10px;
height:16%;
margin-top:8%;
margin-left:2.5%;
position:absolute;
}
.item{
width:100px;
border-style: solid;
margin-left:10px;
}
Thank you!
You want the elements within the "itemsactual" beyond the defined limit or to be added?
– Rômulo Gabriel Rodrigues
Have you used
overflow: hidden
in.itemsatuais
?– Lennon S. Bueno