DEV Community


Discussion on: Responsive Website using CSS Grid

olenadrugalya profile image
Olena Drugalya Author

The gap is the rest of your columns :) since you declared that item5 should take a place of column 4, the rest of space is left empty, thats why the gap. You can fix that by writing:

ev2 {

background-color: #ffeead;
grid-column: 4 / 8; - so it starts from column 4 and goes along to column 8
grid-row: 3 / 6;
Message me to Twitter if its still not clear :)

Thread Thread
fretagi profile image

Thank you very much :)!!