center flex div automatically in all views

This commit is contained in:
meaz 2020-01-20 15:53:37 +01:00
parent 1d483a5b75
commit 59f902b074
2 changed files with 7 additions and 8 deletions

View File

@ -17,10 +17,7 @@
display: none;
}
#flex {
width: 90vw;
margin-left: 5vw;
}
#flex .columns {
width: 50%;
}
@ -113,9 +110,9 @@
}
#flex {
width: 110vw;
margin-left: 0;
}
width: 100vw;
left: auto;
#flex .columns {
height: auto;

View File

@ -74,8 +74,10 @@ a:hover {
}
#flex {
width: 80vw;
margin-top: -50px;
width: 80vw;
position: relative;
left: calc(-40vw + 50%);
/* display: flex;
flex-direction: row;
flex-wrap: wrap;