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
-
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:
100vh
means 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