I'm currently working on adjusting the width of a container in case it cannot accommodate an additional character box.
IMAGE: Eliminate excess spacing by resizing the width
Here is the HTML code
<section id="list_users">
<div id="list_users_fill">
<div class="character" id="me">
<div class="user_img">
<img src="../../assets/images/avatar.jpg">
</div>
<div class="user_name">LUCA</div>
</div>
[...]
</div>
</section>
And here's the CSS code
main {
[...]
}
#list_users {
[...]
}
#list_users > div {
[...]
}
.character {
[...]
}
.user_img img{
[...]
}
I have tried various approaches using flexbox and the width property, but I am unable to find a solution. I am wondering if this is even possible. Any guidance on this issue would be greatly appreciated. Thank you!