The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Two columns
I have a DIV which is centered on my screen. Margin: 0px auto and has a width of 1240px.
I want to have two columns now, side by side and the first one being 868px wide and the second 372 wide.
I need their heights to be flexible but equal. I also want a margin between them of say 10px.
How can I achieve this?
Flexbox
However, 868 + 372 + 10 = 1250. Something will have to give.
http://codepen.io/Paulie-D/pen/wJqXoo
Does flexbox allow you to specify a width?
Yep…see the demo..I did just that.