Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * {
- /* makes border and padding grow inward from width & height
- - mix-and-match units for various box model properties
- - ex. width: 25%; padding: 15px;
- - no workie in IE7
- */
- box-sizing: border-box;
- /* hiding overflow creates a block formatting context
- - a BFC contains floating children and is pushed out by margins
- - allows designer to be cognizant of breaks from grid
- - may mess with box-shadow or other effects which do not occupy layout
- */
- overflow: hidden;
- /* elements will render in a text-like flow, but accept box model properties
- - potentially get a lot of floating behavior automatically
- - great for vertical alignment
- - IE7 only works with elements that are inline by default
- */
- display: inline-block;
- }
Add Comment
Please, Sign In to add comment