The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › CSS Grid Items Alignment › Reply To: CSS Grid Items Alignment
Simpley because some of the elements you have used have default margins.
Employ a standard reset and all is good.
https://codepen.io/Paulie-D/pen/zebBKE?fbclid=IwAR2xCtwQsG3tfi1X715ATWUpfDMCBjwkXDBfkQfUSQRHbeK8d1sJJ9-SoOY