Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Two columns

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #252775
    kiwis
    Participant

    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?

    #252777
    Paulie_D
    Member

    Flexbox

    However, 868 + 372 + 10 = 1250. Something will have to give.

    http://codepen.io/Paulie-D/pen/wJqXoo

    #252778
    kiwis
    Participant

    Does flexbox allow you to specify a width?

    #252787
    Paulie_D
    Member

    Yep…see the demo..I did just that.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.