Skip to content

CSS Layout Cookbook, Sticky Footers #584

Closed Answered by AnilSeervi
juloelker asked this question in Content
Discussion options

You must be logged in to vote

I believe this is because vh will adjust to the client's viewport instead of adjusting to the surrounding content on the page.

Yes. You are right.

The thing thats happening in that example iframe is that a height: 100% is being applied to the both html and body tag by default, which is the reason why the example is still displaying the right layout.
Here the height : 100% is basically imitating 100vh height on the html

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by pepelsbey
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants