The most common layout #1074
mturoci
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
|
🎉 awesome! @mturoci Can we get this in the IDE hints?! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Answer
Explanation
The general idea is to predefine our app wrapper height in advance (
100vh), render known height elements (header/footer) with fixed sizes and let our body fill the rest of the available space (size=1).Note:
100vhmeans 100% of viewport height - visible screen size.Result
Screen.Recording.2021-10-19.at.6.59.12.AM.mov
Beta Was this translation helpful? Give feedback.
All reactions