P粉9030525562023-08-21 00:57:09
Remove align-items: center;
from the .info-footer
style.
align-items
The function is:
Selecting center
means placing the element in the center of the flex
container and laying out around this center. In other words, your footer-info
and footer-menu
are aligned with the center of the flex container, not the starting position.
.info-footer { background-color: rgba(33, 40, 59, 0.8); color: #fff; border: 1px solid rgb(53, 56, 72); width: 100%; height: 14em; display: flex; justify-content: center; gap: 200px; padding: 20px 10px; }
<div class="info-footer"> <div class="info-footer-info"> <h3>Menu 1</h3> <ul> <li><a href="#">O nas</a></li> <li><a href="#">FAQ</a></li> <li><a href="#">Regulamin</a></li> <li><a href="#">Polityka Prywatności</a></li> </ul> </div> <div class="info-footer-menu"> <h3>Menu 2</h3> <ul> <li><a href="#">Kontakt</a></li> </ul> </div> </div>