Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. * {
  2. box-sizing: border-box;
  3. }
  4.  
  5. /* This technique doesn't naturally cause horizontal overflow, but once there is natural vertical overflow, it causes horizontal overflow, so stopping here. */
  6. body {
  7. overflow-x: hidden;
  8. }
  9.  
  10. img {
  11. max-width: 100%;
  12. }
  13.  
  14. main {
  15. max-width: 600px;
  16. margin-left: auto;
  17. margin-right: auto;
  18. }
  19.  
  20. .full-width {
  21. width: 100vw;
  22. position: relative;
  23. left: 50%;
  24. right: 50%;
  25. margin-left: -50vw;
  26. margin-right: -50vw;
  27. }
  28.  
  29. p, figure {
  30. margin: 15px 0;
  31. }
  32. figcaption {
  33. text-align: center;
  34. color: #999;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement