Forums

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

Home Forums CSS Image height when resize

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #256287
    jnog
    Participant

    Hi, everyone!

    I can’t figure it out why the image height is not resize with the section height when resize the window. The image must be always the same height of the green div when resize the windows or the text expands.

    Project here: https://codepen.io/jorgePT/pen/EXQBJo

    Thanks.

    #256408
    JeroenR
    Participant

    I could solve your problem with the following solution:
    Set display: flex; on the DIV with class profile-area, set height: 100%; on the UL with class photo-profile, set height: 100%; on .photo-profile li and change the max-height property on .photo-profile li img to max-height.
    You’ll probably have to do something with media queries to only do this on the larger screens.

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