Forums

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

Home Forums CSS Responsive equal height divs css

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #242602
    idm
    Participant

    Hi

    http://codepen.io/anon/pen/GqpvNv

    I’m struggling to get the height of block 2 and 3 the same height as block 1.
    I would like blocks 2 and 3 to be the same height – both matching the same height as block 1.

    Hope that makes sense.

    I tried min height but then it doesn’t work responsively. I tried % height which also didn’t work.

    Can anyone help me please?

    Many thanks

    #242603
    Paulie_D
    Member

    Not impossible with flexbox but it’s messy and you need to know the height of the wrapper.

    #242604
    idm
    Participant

    Hi

    Thanks for the reply. The maximum height of the row will be 250px…
    how would it be done?

    Thanks

    #242610
    Paulie_D
    Member
    #242612
    idm
    Participant

    Awesome!! thank you so much. Flexbox is great.

    Thanks again

    #242620
    idm
    Participant

    would it be possible to have the height respsonsive as well as the width?

    #242622
    Paulie_D
    Member

    Not as far as I know….but you could try.

    #242633
    amanda_
    Participant

    Use

    max-height: 100vh; 
    
    

    or something of the like for vertical responsiveness.

    #242654
    idm
    Participant

    Brilliant many thanks! got it working now.

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