Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Fix for Box Sizing resets while using bootstrap in exisitng project. Use class "col" with bootstrap column class to take effect of box-sizing.
/*#region box-sizing fix*/
*: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