So I have some Jquery UI draggable span elements that, after adding Bootstrap 3.0 to my website have shrunk in height, this is a problem because they are part of a document tagging/positioning app of mine and need to stay the same height. I found the culprit to be:
*,
*:before,
*:after {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
In Bootstrap.css. If I comment out -webkit-box-sizing: border-box;, box-sizing: border-box; or -moz-box-sizing: border-box; individually my problem persists, but if comment out this entire style the height of my draggable elements return to their original height.
I can override this style like so to restore the height of my ui-draggable span elements:
*,
*:before,
*:after {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
What is the difference between content-box and border-box?