Essai1.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>Un essai de Flexbox</title>
  5. <meta charset="UTF-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <style>
  8. .flex-container {
  9. display: flex;
  10. justify-content: center;
  11. flex-direction: column;
  12. }
  13. .flex-container1 {
  14. display: flex;
  15. justify-content: center;
  16. flex-direction: row;
  17. flex-wrap: wrap;
  18. align-content: space-between;
  19. }
  20. .flex-container > div {
  21. margin: 10px;
  22. padding: 20px;
  23. font-size: 30px;
  24. }
  25. .ligne1 {
  26. margin: 10px;
  27. padding: 20px;
  28. font-size: 30px;
  29. align-self: center;
  30. }
  31. .fond1 {
  32. /* background: url("../img/F-8.svg") no-repeat;
  33. width: 100%;*/
  34. }
  35. .progrès {
  36. align-content: center;
  37. }
  38. .bouton-reponse {
  39. margin: 5px;
  40. font-size: 0.8em;
  41. padding: 5px;
  42. background:lightgrey;
  43. border-radius: 10px;
  44. border-style: groove;
  45. border-color: white;
  46. opacity: 0.9;
  47. width: 30%;
  48. /* height: 30%;*/
  49. font-weight: bold;
  50. }
  51. .question {
  52. background: lightgrey;
  53. border-radius: 15px;
  54. border-style: groove;
  55. border-color: white;
  56. opacity: 0.9;
  57. font-weight: bold;
  58. font-size: 1.5em;
  59. width: 100%;
  60. }
  61. </style>
  62. </head>
  63. <body>
  64. <div class="flex-container fond1">
  65. <div class="flex-container1">
  66. <div class="ligne1">
  67. <button tyle="align-self: center">bouton 01</button>
  68. <button>bouton 02</button>
  69. </div>
  70. <div class="ligne1">
  71. <p class="question">La question</p>
  72. </div>
  73. <div class="ligne1">
  74. <button>bouton 03</button>
  75. </div>
  76. </div>
  77. <div class="flex-container1"> <progress value="22" max="100" ></progress> </div>
  78. <div class="flex-container">
  79. <div class="flex-container1">
  80. <button class="bouton-reponse">bouton 1<br />Et un ajout</button>
  81. <button class="bouton-reponse">bouton 2</button>
  82. <button class="bouton-reponse">bouton 3</button>
  83. </div>
  84. <div class="flex-container1">
  85. <button class="bouton-reponse">bouton 4 </br > et un ajout</button>
  86. <button class="bouton-reponse">bouton 5</button>
  87. </div>
  88. <div class="flex-container1">
  89. <button class="bouton-reponse">bouton 6</button>
  90. <button class="bouton-reponse">bouton 7</button>
  91. <button class="bouton-reponse">bouton 8</button>
  92. </div>
  93. </div>
  94. </div>
  95. </body>
  96. </html>