Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keep divs from overflowing

How do I keeps these two from overflowing? I have tried almost everything so i don't know where to go from here. divs are marked with green and orange. enter image description here

enter image description here

#stemplingerclass {
    clear: both;
    max-width: 100%;

}

#datoid 
{

   clear: both;
   max-width: 100%;
}
<div class="col-sm-10">
   <div class="col-md-3 col-sm-3 col-xs-10 text-center" style="background-color: green;" >
         <div id="datoid">


         </div>
      </div>

       <div class="col-md-7 col-sm-7 col-xs-10" style="background-color: orange;">
         <div id="stemplingerclass">

         </div>
       </div>
   </div>
like image 262
Mathias Rønnow Nørtoft Avatar asked Jun 02 '26 00:06

Mathias Rønnow Nørtoft


1 Answers

Just add display: flex; to container of these two divs. If you want children not to stretch also add align-items: flex-start; to you container.

like image 88
Vadim Ovchinnikov Avatar answered Jun 04 '26 13:06

Vadim Ovchinnikov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!