mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-26 06:47:17 +10:00
Don't let layout's main content shrink when scrolling is disabled
This commit is contained in:
parent
9d32898741
commit
2f779bafcf
2 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@
|
|||
.container {
|
||||
/* parent aka root is flexbox, this container takes all available space */
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
|
||||
/* This container uses flexbox layout */
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -7,8 +7,9 @@
|
|||
}
|
||||
|
||||
.layoutWrapperMain {
|
||||
/* Use all available space parent element (aka root) can give */
|
||||
/* Use all available space parent element (aka root) can give and don't shrink content */
|
||||
flex-grow: 1;
|
||||
flex-shrink: 0;
|
||||
|
||||
/* Expand to the full remaining width of the viewport */
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue