The old Float Layout

Now that i look at this code it seems quite simple and neat.

Item 1
Item 2
Item 3

Now lets have a look at this same layout with css grid, and see what is improved.

The New CSS Grid layout

You can see that the code is a bit neater here, and the grid is all specified in the container. You can specify the width of each item, and then also add a px gap still, and the items go all the way to the edge of the container, so its definately better.

It seems that grid's are much neater and easier to control the layout. I will try and start using this rather than floats!

Item 1
Item 2
Item 3

So if i wanted to make the middle item 50% i could just change that in the container grid, rather than having to add a class to the item, or selecting it with n-th.

Item 1
Item 2
Item 3