bonjour je ne sais pas si ma question est bien placée mais j'ai un html et un CSS et je n'arrive pas à le rendre responsive je n'arrive pas à aligner les 3 conteneur si vous pouvez m'aider sur une meme ligne
Code:body { font-family: Arial, sans-serif; margin: 0; padding: 0; background-color: #fafafa; } header { background-image: url('/site/images/good.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat; color: white; padding: 20px; text-align: center; } header h1 { background: rgba(0, 0, 0, 0); display: inline-block; padding: 10px 20px; border-radius: 10px; color: white; font-size: 2em; font-weight: bold; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); } .header-buttons { margin-top: 10px; } .header-button { background: linear-gradient(135deg, #4CAF50, #45a049); color: #ffffff; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; border: 2px solid #4CAF50; margin: 0 10px; display: inline-block; transition: all 0.3s ease; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); } .header-button:hover { background: linear-gradient(135deg, #45a049, #4CAF50); color: #ffffff; border-color: #45a049; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); transform: translateY(-2px); } .header-button:active { background: linear-gradient(135deg, #45a049, #4CAF50); transform: translateY(1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } } .container { display: flex; justify-content: space-between; padding: 20px; } .left { display: flex; flex-direction: row; width: 70%; gap: 20px; } .container-box { width: 30%; background-color: #ffffff; border: 1px solid #ddd; padding: 20px; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); text-align: center; position: flex; overflow: hidden; } .carousel-container { position: relative; width: 100%; height: 400px; overflow: hidden; border-radius: 10px; background: #eee; margin: 0 auto; } .carousel-images { display: flex; transition: transform 0.5s ease; width: 100%; height: 100%; } .carousel-images img { min-width: 100%; height: 100%; object-fit: cover; } .carousel-button { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(0, 0, 0, 0.5); color: white; border: none; padding: 10px; cursor: pointer; z-index: 1000; border-radius: 50%; } .carousel-button.prev { left: 10px; } .carousel-button.next { right: 10px; } .right { width: 15%; padding: 10px; display: flex; flex-direction: column; gap: 50px; height: 500px; } .right h2 { background-color: #4CAF50; color: white; padding: 10px; margin-bottom: 10px; border-radius: 10px; } .right p { padding: 10px; border: 1px solid #ddd; border-radius: 10px; background-color: white; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .best-player, .best-horse { max-width: 100%; max-height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid #ddd; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); } .container-box h3 { background-color: #4CAF50; color: white; padding: 10px; border-radius: 10px; margin: 0 0 20px; } .ranking-table { border-collapse: collapse; margin-top: 20px; } .ranking-table th, .ranking-table td { width: 30%; padding: 10px; border: 1px solid #ddd; text-align: left; } .ranking-table th { width: 30%; background-color: #4CAF50; color: white; } .ranking-table tr:nth-child(even) { background-color: #f2f2f2; } .green-container { background-color: #4CAF50; color: white; padding: 20px; border-radius: 10px; margin-top: 20px; width: 71%; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); text-align: center; } @media (max-width: 768px) { .right p { padding: 8px; margin-bottom: 15px; } .best-player, .best-horse { max-height: 120px; } .container-box h3 { padding: 8px; } .ranking-table th, .ranking-table td { padding: 8px; } .green-container { padding: 15px; width: 100%; } } @media (max-width: 480px) { .right p { padding: 5px; margin-bottom: 10px; } .best-player, .best-horse { max-height: 100px; } .container-box h3 { padding: 5px; } .ranking-table th, .ranking-table td { padding: 5px; } .green-container { padding: 10px; width: 100%; } }
-----