1
I have the following structure of a mosaic
.row > div {border:10px solid white}
.B {background:blue; height:700px}
.G {background:green; height:350px}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet"/>
<div class="container-fluid px-5">
<div class="row d-block">
<div class="col-md-8 col-lg-6 float-left B"></div>
<div class="col-md-4 col-lg-3 float-left G"></div>
<div class="col-md-4 col-lg-3 float-left G"></div>
<div class="col-md-4 col-lg-3 float-left G"></div>
<div class="col-md-4 col-lg-3 float-left G"></div>
</div>
</div>
But the container-fluid
nor the row
accompany the size of the Divs inside I have to set the size in css?
Obs: see in full screen.
Wow, I had completely forgotten about clearfix and use it all the time. Thank you very much Hugo
– Giovanni Dias
@Giovannidias happens rss... But particularly in which you use bs4 the Flex would be a more suitable option. But with float always need a clearfix so much that Bs itself has this class ready to use. Abs
– hugocsl