Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. .container {
  2. max-width: 1200px;
  3. width: 100%;
  4. margin: 0 auto;
  5. }
  6. .wrapper {
  7. background: silver;
  8. width: calc(100% - 20px);
  9. margin: 10px;
  10. min-height: 50px;
  11. overflow: auto;
  12. clear: both;
  13. }
  14. /* 1/12 = 0.0833 */
  15. @media (max-width: 799px) {
  16. .smcol1 { width: calc(8.33% - 2%) }
  17. .smcol2 { width: calc(16.66% - 2%) }
  18. .smcol3 { width: calc(24.99% - 2%) }
  19. .smcol4 { width: calc(33.32% - 2%) }
  20. .smcol5 { width: calc(41.65% - 2%) }
  21. .smcol6 { width: calc(49.98% - 2%) }
  22. .smcol7 { width: calc(58.31% - 2%) }
  23. .smcol8 { width: calc(66.64% - 2%) }
  24. .smcol9 { width: calc(74.97% - 2%) }
  25. .smcol10 { width: calc(83.33% - 2%) }
  26. .smcol11 { width: calc(91.63% - 2%) }
  27. .smcol12 { width: calc(100% - 2%) }
  28.  
  29. .smcol1,
  30. .smcol2,
  31. .smcol3,
  32. .smcol4,
  33. .smcol5,
  34. .smcol6,
  35. .smcol7,
  36. .smcol8,
  37. .smcol9,
  38. .smcol10,
  39. .smcol11,
  40. .smcol12 {
  41. background: yellowgreen;
  42. min-height: 50px;
  43. display: block;
  44. margin: 10px 1%;
  45. outline: 1px solid black;
  46. float: left;
  47. }
  48. }
  49.  
  50. @media (min-width: 800px) {
  51. .lgcol1 { width: calc(8.33% - 2%) }
  52. .lgcol2 { width: calc(16.66% - 2%) }
  53. .lgcol3 { width: calc(24.99% - 2%) }
  54. .lgcol4 { width: calc(33.32% - 2%) }
  55. .lgcol5 { width: calc(41.65% - 2%) }
  56. .lgcol6 { width: calc(49.98% - 2%) }
  57. .lgcol7 { width: calc(58.31% - 2%) }
  58. .lgcol8 { width: calc(66.64% - 2%) }
  59. .lgcol9 { width: calc(74.97% - 2%) }
  60. .lgcol10 { width: calc(83.33% - 2%) }
  61. .lgcol11 { width: calc(91.63% - 2%) }
  62. .lgcol12 { width: calc(100% - 2%) }
  63.  
  64. .lgcol1,
  65. .lgcol2,
  66. .lgcol3,
  67. .lgcol4,
  68. .lgcol5,
  69. .lgcol6,
  70. .lgcol7,
  71. .lgcol8,
  72. .lgcol9,
  73. .lgcol10,
  74. .lgcol11,
  75. .lgcol12 {
  76. background: lightsalmon;
  77. min-height: 50px;
  78. display: block;
  79. margin: 10px 1%;
  80. outline: 1px solid black;
  81. float: left;
  82. }
  83. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement