Hi I am having problems placing two divs underneath eachother. I have a container div which is centered in the page using the display flex and justify content center as this is the only way I could get it to work. I then have three divs, one taking up 50% of the screen and the other two taking up 20%, I want the other two divs to be beneath eachother instead of next to eachother but cannot figure out how to do so. This is my HTML:
<div id='content'>
<div id='col1'>
<p>paragraph 1</p>
</div>
<div id='col2'>
<p>paragraph 2</p>
</div>
<div id='col3'>
<p>paragraph 3</p>
</div>
</div>
This is my CSS:
#content {
display: flex;
justify-content: center;
}
#col1, #col2 {
float:left;
margin-top:5px;
margin-bottom:5px;
border-radius:5px;
}
#col1 {
width:50%;
}
#col2 {
background: #FCF;
width: 20%;
height:250px;
}
#col3 {
display:block;
background: orange;
width:20%;
height: 250px;
margin-top:5px;
margin-bottom:5px;
border-radius:5px;
}
Thanks in advance for any help.