EduardET

7 columns grid

Mar 24th, 2020
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 0.41 KB | None | 0 0
  1. .dt-wrapper {
  2.     display: grid;
  3. }
  4. @media (min-width: 981px) {
  5.     .dt-wrapper {
  6.         grid-template-columns: repeat(7, 1fr);
  7.         grid-gap: 20px;
  8.     }
  9. }
  10. @media (min-width: 768px) and (max-width: 980px) {
  11.     .dt-wrapper {
  12.         grid-template-columns: repeat(3, 1fr);
  13.         grid-gap: 10px;
  14.     }
  15. }
  16. @media (min-width: 481px) and (max-width: 767px) {
  17.     .dt-wrapper {
  18.         grid-template-columns: repeat(2, 1fr);
  19.         grid-gap: 10px;
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment