@Hassiai
Posted
Replace <div class="grid-container"> with the main tag To center .grid-container add display: grid; align-items: center; Justify-items: center; to the body instead display: flex; and it properties.
Increase the padding right and left values for .card1, .card2, .card3, .card4, .card5 .card1, .card2, .card3, .card4, .card5{ padding: 1.5rem 2.5rem} Hope am helpful You did a good job , well done. HAPPY CODING
Marked as helpful
@t0ntin
Posted
@Hassiai Hi. Thanks for your reply. Are you saying that to center the content, I should use display:grid, etc on the body? I had more padding before, but I decreased it because it made everything too wide.
@Hassiai
Posted
@t0ntin increasing the padding right and left values of the cards won't make everything wide .
@Hassiai
Posted
@t0ntin increasing the padding right and left values of the cards won't make everything wide .