I'm making school project in html and css, and all the upper parts above the buttons are centered and responsive, but the buttons are not centered (I had to change the width to 60%) and they are not responsive, Any help would be appreciated.
Here is the css code:
.Sports-type{
padding: 10px;
width: 60%;
margin: auto;
text-align: center;
display: grid;
grid-template-columns: auto auto auto;
}
I tried to use different display commands and play with the width, padding, and margin, But not results.
You can replace the
display: gridwithdisplay: flexto center the buttons and make them responsive.