What is the best way to vertically arrange two divisions? Below is my code for the divisions:
.containerLeft {
width: 50%;
float: left;
}
.containerRight {
width: 50%;
background-color: skyblue;
}
<div class="containerLeft">
<input type="text" id="mytext" />
<select id="myList" multiple="multiple"/>
</div>
<div class="containerRight">
<input type="button" class="myButton" value="A"></input>
<input type="button" class="myButton" value="B"></input>
<input type="button" class="myButton" value="C"></input>
</div>
I want the first div container to take up 50% of the screen and have the second div container with buttons take up the remaining 50%. Both containers should be displayed side by side.
Any assistance on achieving this layout would be greatly appreciated. I am new to HTML, so please correct me if this approach is not the right way to position two panels next to each other.