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.
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.
Author
Posts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘CSS’ is closed to new topics and replies.