Mobile view frozen - Post ID 291360

User 379556 Photo


Registered User
1,152 posts

I think I overlooked that the default value of the overflow property is 'visible', and should therefore not have used the word 'normally'.

I note also that the overflow property is said (https://www.w3schools.com/cssref/pr_pos_overflow.asp) to work only for block elements with a specified height, making your comments, Inger, about Grid particularly relevant if the body is set to Grid.

Frank
User 2699991 Photo


Registered User
3,214 posts

Frank Cook wrote:


I note also that the overflow property is said (https://www.w3schools.com/cssref/pr_pos_overflow.asp) to work only for block elements with a specified height, making your comments, Inger, about Grid particularly relevant if the body is set to Grid.

A body height of 100vh would normally*, I think, be unable to scroll.
Frank


Overflow works on flexed elements not just block both for widths & heights (obviously the element has to have a specified height/width in order to have an overflow) but it doesn't have to be "block" maybe that w3c thingy is a bit out of date

so if the body is set to 100vh overflow hidden, and an element inside is set to 200vh or even 110vh then the overflow would be hidden therefore no scroll bars on the body element

The Help You Need: When You Need It The Most
Website Design & Development
Website Renovations
Wayans' Theme Park
Watch Listen & Learn Video Tutorials
User 164528 Photo


Registered User
13 posts

Thank you all for your contributions. That gives me something to work on. Will report back if I get to the bottom of it.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.