Last active
January 22, 2020 10:16
-
-
Save SimonPadbury/29c7f0dae4fac631388bd1b02af948b2 to your computer and use it in GitHub Desktop.
container-responsive class for Bootstrap 4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Responsive Container (because Bootstrap 4.0.0 doesn't have this) */ | |
.container-responsive { | |
width: 100%; | |
max-width: 1140px; | |
padding-right: 15px; | |
padding-left: 15px; | |
margin-right: auto; | |
margin-left: auto; | |
} | |
.navbar > .container-responsive { | |
display: -webkit-box; | |
display: -ms-flexbox; | |
display: flex; | |
-ms-flex-wrap: wrap; | |
flex-wrap: wrap; | |
-webkit-box-align: center; | |
-ms-flex-align: center; | |
align-items: center; | |
-webkit-box-pack: justify; | |
-ms-flex-pack: justify; | |
justify-content: space-between; | |
} | |
.navbar > .container, | |
.navbar > .container-fluid, | |
.navbar > .container-responsive { | |
padding-right: 0; | |
padding-left: 0; | |
} | |
.navbar > .container, | |
.navbar > .container-responsive { | |
max-width: 1110px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment