layout.html 857 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <html>
  2. <head>
  3. <style>
  4. html, body {
  5. margin: 0;
  6. color: white;
  7. font-size: 24px;
  8. background: purple;
  9. }
  10. .body {
  11. height: 100%;
  12. width: 100%;
  13. display: table;
  14. background: gray;
  15. }
  16. .header {
  17. height: 200px;
  18. width: 100%;
  19. background: #0E83CD;
  20. transition: all 250ms;
  21. overflow: hidden;
  22. }
  23. .header:active {
  24. height: 10px;
  25. }
  26. .content {
  27. width: 100%;
  28. height: 400px;
  29. background: #0972B4;
  30. }
  31. .footer {
  32. height: 200px;
  33. width: 100%;
  34. background: black;
  35. }
  36. </style>
  37. </head>
  38. <body>
  39. <div class="body">
  40. <div class="header">
  41. <h1>Header</h1>
  42. </div>
  43. <div class="content">
  44. Some text somewhere
  45. </div>
  46. <div class="content">
  47. More text
  48. </div>
  49. <div class="content">
  50. Even more
  51. </div>
  52. </div>
  53. <div class="footer">Footer</div>
  54. </body>
  55. </html>