Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <link href="https://fonts.googleapis.com/css?family=Nunito&display=swap" rel="stylesheet">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <link rel="stylesheet" type="text/css" media="all" href="style.css">
  8. <link rel="stylesheet" type="text/css" href="grid.css">
  9. <title>Grid</title>
  10. </head>
  11. <body>
  12. <h1>Grid CSS</h1>
  13. <div class="grid-container">
  14. <div class="grid-element item-1">item-1</div>
  15. <div class="grid-element item-2">item-2</div>
  16. <div class="grid-element item-3">item-3</div>
  17. <div class="grid-element item-4">item-4</div>
  18. <div class="grid-element item-5">item-5</div>
  19. <div class="grid-element item-6">item-6</div>
  20. <div class="grid-element item-7">item-7</div>
  21. <div class="grid-element item-8">item-8</div>
  22. <div class="grid-element item-9">item-9</div>
  23. <div class="grid-element item-10">item-10</div>
  24. </div>
  25.  
  26. </body>
  27. </html>
  28.  
  29. //**************************************************************************
  30. * {
  31. box-sizing: border-box;
  32. }
  33. body {
  34. font-size: 1.3em;
  35. font-family: 'Nunito', sans-serif;
  36. color: #fff;
  37. background-color: #e8e9e9;
  38. padding-left: 5%;
  39. padding-right: 5%;
  40. }
  41.  
  42. h1{
  43. color: #555;
  44. }
  45.  
  46. .grid-container{
  47. padding: 10px;
  48. background-color: #fff;
  49. border-radius: 5px;
  50. margin: 45px auto;
  51. box-shadow: 0 1.5px 0 0 rgba(0,0,0,0.1)
  52. }
  53.  
  54.  
  55. .grid-element{
  56. color: #fff;
  57. padding: 10px;
  58. background-color: firebrick;
  59. border-radius: 5px;
  60. }
  61.  
  62. .grid-element:nth-child(odd){
  63. background-color: #eca799;
  64. color: black;
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement