Quantcast
Channel: How can I prevent a 100vh image from expanding the viewpoint? - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by kukkuz for How can I prevent a 100vh image from expanding the...

You don't need to set height: 100vh on the image - as you are already having flexboxes and grids in your layout, you can inherit the heights using a column flexbox wrapper on body- here are the...

View Article



Answer by 100pic for How can I prevent a 100vh image from expanding the...

You can subtract the height of the nav/header from the height of the #l-splash div. E.g.header { ... height: 50px; max-height: 50px; }#l-splash { ... height: calc(100vh - 50px);}If your nav or other...

View Article

How can I prevent a 100vh image from expanding the viewpoint?

For my #l-splash image, I'm having issues with the height: 100vh expanding past the viewpoint. I have tried changing the overflow and different max-heights. I want my width to take up 100% of the left...

View Article
Browsing latest articles
Browse All 3 View Live


Latest Images