Answers for "display two divs side by side flexbox"

CSS
0

div side by side flex

.float-container {
    border: 3px solid #fff;
    padding: 20px;
}

.float-child {
    width: 50%;
    float: left;
    padding: 20px;
    border: 2px solid red;
}
<div class="float-container">

  <div class="float-child">
    <div class="green">Float Column 1</div>
  </div>
  
  <div class="float-child">
    <div class="blue">Float Column 2</div>
  </div>
  
</div>
Posted by: Guest on January-23-2021
-2

display two divs side by side flexbox

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}
Posted by: Guest on July-14-2020

Code answers related to "display two divs side by side flexbox"

Browse Popular Code Answers by Language