Skip to content

Instantly share code, notes, and snippets.

@Purush0th
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save Purush0th/f2d80f86827ae05307a7 to your computer and use it in GitHub Desktop.

Select an option

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.
/*#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