Hacker News new | ask | show | jobs
by sgdesign 4505 days ago
Not completely sure if that was serious or sarcastic, but in case that was a real question: The main reason for using a grid is to make sure elements on your page stay aligned vertically and equally distributed horizontally.

If you use separate margins and paddings for each element, there's a bigger risk that you'll mess up and introduce irregularities in the layout.

Of course, maybe you don't want elements to be aligned on your page. In that case, yes, you might not need a grid.

1 comments

Can't you just put those elements in a <div> and manipulate that instead?
I'm not sure what you think CSS grids are, but you should probably read up a little more on them…
I take it they're preconfigured divs that clutter up your code and that are trying to solve a problem that doesn't really exist given the basic nature of CSS.

If you absolutely need a grid, what about http://hashgrid.com/?

Could you explain the downvote?
I didn't downvote, but your tone is all wrong. You sound like a know it all, while also not making a strong argument against grids.
I'll take that with a grain of salt. For stronger arguments, see my other posts.