Guest User

Untitled

a guest
Oct 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. * {
  2. /* makes border and padding grow inward from width & height
  3. - mix-and-match units for various box model properties
  4. - ex. width: 25%; padding: 15px;
  5. - no workie in IE7
  6. */
  7. box-sizing: border-box;
  8.  
  9. /* hiding overflow creates a block formatting context
  10. - a BFC contains floating children and is pushed out by margins
  11. - allows designer to be cognizant of breaks from grid
  12. - may mess with box-shadow or other effects which do not occupy layout
  13. */
  14. overflow: hidden;
  15.  
  16. /* elements will render in a text-like flow, but accept box model properties
  17. - potentially get a lot of floating behavior automatically
  18. - great for vertical alignment
  19. - IE7 only works with elements that are inline by default
  20. */
  21. display: inline-block;
  22. }
Add Comment
Please, Sign In to add comment