-1

I've been able to create 2 DIV areas, but they only stack, I would like to make them 50/50?

Thanks for any help.

<body>
  <div id="left">
  <p>TEST</p>
  <p>TEST</p>
  <p>TEST</p>
  </div>
  <div id="right">
  <p>TEST</p>
  <p>TEST</p>
  <p>TEST</p>
  </div>
</body>
</html>
Jeff
  • 7
  • 1

2 Answers2

1

maybe this can help. sorry if i false

.wrapper{
display:flex;
flex-direction:row;
}
#left{
background-color:#32a852;
text-align:center;
width:50%;
}
#right{
background-color:#5b1982;
width:50%;
}
<div class="wrapper">
  <div id="left">
  <p>TEST</p>
  <p>TEST</p>
  <p>TEST</p>
  </div>
  <div id="right">
  <p>TEST</p>
  <p>TEST</p>
  <p>TEST</p>
  </div>
</div>
1

div{
   display:inline-block;
   width:calc(50% - 2px);
   border:solid 1px green;
   height:100px;  
   margin:0;
   padding:0;
}
   
   
body{
margin:0;
}
<div></div><!--
--><div></div>
DCR
  • 14,737
  • 12
  • 52
  • 115