Last active
August 29, 2015 14:20
-
-
Save Purush0th/f2d80f86827ae05307a7 to your computer and use it in GitHub Desktop.
Fix for Box Sizing resets while using bootstrap in exisitng project. Use class "col" with bootstrap column class to take effect of box-sizing.
This file contains 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
/*#region box-sizing fix*/ | |
*, | |
*:before, | |
*:after { | |
-webkit-box-sizing: content-box; | |
-moz-box-sizing: content-box; | |
box-sizing: content-box; | |
} | |
.container-fluid .row .col, | |
.container-fluid .row .col:before, | |
.container-fluid .row .col:after, | |
.container .row .col, | |
.container .row .col:before, | |
.container .row .col:after | |
{ | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
/*#endregion box-sizing fix*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment