-1
Hello I have a problem in this basic CSS, I have a father div 100%, I need the first son to stick to the left the other in the middle and the other on the right.
I tried something with Nth-Child but it didn’t do me much good because it will be a Carrousel.
Hug!
<style type="text/css">
.pai {
width: 100%;
height: 100px;
background: black;
text-align: center;
}
.filho {
width: 30%;
height: 100px;
background: rebeccapurple;
display: inline-block;
}
</style>
<div class="pai">
<div class="filho"></div>
<div class="filho"></div>
<div class="filho"></div>
</div>
Thanks, Hug!
– Josimara