If I have two div s next to each other. How can I make them go under each other when resizing the browser? So far I found this example on stackoverflow, which is two divs beside each other. How can I make them under each other on browser resize?
#parent {
display: flex;
}
#narrow {
width: 200px;
background: lightblue;
/* Just so it's visible */
}
#wide {
flex: 1;
/* Grow to rest of container */
background: lightgreen;
/* Just so it's visible */
}
<div id="parent">
<div id="wide">Wide (rest of width)</div>
<div id="narrow">Narrow (200px)</div>
</div>