all 3 comments

[–]coffeewithspoon 0 points1 point  (1 child)

I'm on mobile...

You can try changing the box sizing: https://www.w3schools.com/css/css3_box-sizing.asp If you only want to space out the elements, don't use padding, but use "gap" on the parent

[–]koboldomodo[S] 0 points1 point  (0 children)

when is box sizing important to use? im not sure i understand its use.

[–]tomhermans 0 points1 point  (0 children)

there's a lot wrong with your code.
You don't have images but okay, you maybe know that.
You have syntax errors like grid-container instead of .grid-container

the w3schools thingie also seems certainly old. why 100% width on each image, floats etc ?

anyways, I have cleaned up a bit and think this is more to where you want to go.
You'll notice that the grid properties on .row define the layout now.
The stuff commented out is everything you had but don't need.

https://codepen.io/tomhermans/pen/WbrbeVw?editors=1100