This is my code so far:
HTML:
<div class="buttons">
<button type="button" id="buttonSpanish">CHANGE TO SPANISH</button>
<button type="button" id="buttonFrench">CHANGE TO FRENCH</button>
<button type="button" id="buttonGerman">CHANGE TO GERMAN</button>
</div>
and CSS:
button {
background-color: #03a9f4;
color: white;
border-color: white;
border-radius: 2px;
border: none;
text-align: center;
text-decoration: none;
font-size: 16px;
display: inline-block;
max-width: 200px;
text-transform: uppercase;
height: 50%;
}
.buttons {
background-color: black;
display: flex;
justify-content: space-around;
height: 50px;
border: 5px solid #03a9f4;
width: 98.9%;
}
The finished product looks like this:
How do I make it so that the buttons are “floating” In the middle? I want to keep the same distance horizontally, but change the vertical spacing so that the buttons are not attached to the parent div if that makes any sense