piffy

Grid Layout Demo

Jan 3rd, 2021
964
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <style type="text/css">
  7. body {
  8. padding: 0;
  9. margin: 0;
  10. }
  11.  
  12. svg:not(:root) {
  13. display: block;
  14. }
  15.  
  16. .playable-code {
  17. background-color: #f4f7f8;
  18. border: none;
  19. border-left: 6px solid #558abb;
  20. border-width: medium medium medium 6px;
  21. color: #4d4e53;
  22. height: 100px;
  23. width: 90%;
  24. padding: 10px 10px 0;
  25. }
  26.  
  27. .playable-canvas {
  28. border: 1px solid #4d4e53;
  29. border-radius: 2px;
  30. }
  31.  
  32. .playable-buttons {
  33. text-align: right;
  34. width: 90%;
  35. padding: 5px 10px 5px 26px;
  36. }
  37. </style>
  38. <style type="text/css">
  39. body {
  40. width: 90%;
  41. max-width: 900px;
  42. margin: 2em auto;
  43. font: .9em/1.2 Arial, Helvetica, sans-serif;
  44. }
  45.  
  46. .container {
  47. display: grid;
  48. grid-template-columns: 1fr 3fr;
  49. grid-gap: 20px;
  50. }
  51. header {
  52. grid-column: 1 / 3;
  53. grid-row: 1;
  54. }
  55.  
  56. article {
  57. grid-column: 2;
  58. grid-row: 2;
  59. }
  60.  
  61. aside {
  62. grid-column: 1;
  63. grid-row: 2;
  64. }
  65.  
  66. footer {
  67. grid-column: 1 / 3;
  68. grid-row: 3;
  69. }
  70.  
  71. header,
  72. footer {
  73. border-radius: 5px;
  74. padding: 10px;
  75. background-color: rgb(207,232,220);
  76. border: 2px solid rgb(79,185,227);
  77. }
  78.  
  79. aside {
  80. border-right: 1px solid #999;
  81. }
  82.  
  83. </style>
  84. <title>Grid Layout Demo</title>
  85. </head>
  86. <body>
  87. <div class="container">
  88. <header>Intestazione</header>
  89. <article>
  90. <h1>Contenuto</h1>
  91. <p>Duis felis orci, pulvinar id metus ut, rutrum luctus orci. Cras porttitor imperdiet nunc, at ultricies tellus laoreet sit amet. Sed auctor cursus massa at porta. Integer ligula ipsum, tristique sit amet orci vel, viverra egestas ligula. Curabitur vehicula tellus neque, ac ornare ex malesuada et. In vitae convallis lacus. Aliquam erat volutpat. Suspendisse ac imperdiet turpis. Aenean finibus sollicitudin eros pharetra congue. Duis ornare egestas augue ut luctus. Proin blandit quam nec lacus varius commodo et a urna. Ut id ornare felis, eget fermentum sapien.</p>
  92.  
  93. <p>Nam vulputate diam nec tempor bibendum. Donec luctus augue eget malesuada ultrices. Phasellus turpis est, posuere sit amet dapibus ut, facilisis sed est. Nam id risus quis ante semper consectetur eget aliquam lorem. Vivamus tristique elit dolor, sed pretium metus suscipit vel. Mauris ultricies lectus sed lobortis finibus. Vivamus eu urna eget velit cursus viverra quis vestibulum sem. Aliquam tincidunt eget purus in interdum. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.</p>
  94. </article>
  95. <aside>
  96. <h2>Aside</h2>
  97. <p>Nam vulputate diam nec tempor bibendum. Donec luctus augue eget malesuada ultrices. Phasellus turpis est, posuere sit amet dapibus ut, facilisis sed est.</p>
  98. </aside>
  99. <footer>Pieà di pagina</footer>
  100. </div>
  101. </body>
  102. </html>
RAW Paste Data