You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.0 KiB

2 years ago
  1. * {
  2. margin: 0;
  3. padding: 0;
  4. list-style: none;
  5. background-color: #F0F8FF;
  6. }
  7. #layout {
  8. display: flex;
  9. width: 80%;
  10. margin: 0 auto;
  11. flex-direction: column;
  12. }
  13. #top {
  14. width: 100%;
  15. flex: 0 0 30px;
  16. background-color: aqua;
  17. }
  18. #main {
  19. flex: 0 0 100%;
  20. display: flex;
  21. margin-top: 30px;
  22. flex-wrap: wrap;
  23. }
  24. #main div:first-child {
  25. flex: 0 0 100%;
  26. background-color: #F0F8FF;
  27. flex-wrap: wrap;
  28. display: flex;
  29. align-content: flex-start;
  30. justify-content: space-around;
  31. }
  32. #main div:first-child li {
  33. flex: 0 0 30%;
  34. height: 40px;
  35. line-height: 40px;
  36. text-align: center;
  37. margin-top: 5px;
  38. border: 1px solid #00FA9A;
  39. }
  40. #main div:nth-child(2) {
  41. flex: 0 0 100%;
  42. margin-top: 10px;
  43. background-color: #F0F8FF;
  44. flex-wrap: wrap;
  45. display: flex;
  46. border: 1px solid #00FA9A;
  47. justify-content: space-around;
  48. }
  49. #main div:nth-child(2) li {
  50. flex: 0 0 22%;
  51. height: 100px;
  52. background-color: #87CEEB;
  53. margin-top: 10px;
  54. margin-bottom: 10px;
  55. }