.horizontal-divider-container{ width: 100%; height: 10px; display: flex; } .horizontal-divider{ height: 2px; width: 80%; background-color:black; margin: auto; }