I am styling a content div with text and two child divs positioned next to each other within the content div.
My goal is to have the child divs display below the text, rather than beside it.
body {
text-align: center;
}
#first, #second {
border: solid green 2px;
}
#content {
border: solid purple 2px;
display: flex;
clear: both;
}
#second {
background-color: yellow;
padding-bottom: 500px;
width: 100px;
display: inline;
position: relative;
}
#first {
background-color: palegoldenrod;
padding-bottom: 500px;
width: 400px;
display: inline;
position: relative;
}
<div id="content">div id="content"
<div id="second">div id="second"</div>
<div id="first">div id="first</div>
</div>
Check out this Jsfiddle example to see how it currently appears.