Skip to content Skip to sidebar Skip to footer

Center A Grid Of Divs (dynamically Generated)

I've tried every trick from SO and other sources but for the life of me I cannot get this darn grid of boxes to center. I'm trying to get the entire grid to be centered on the page

Solution 1:

Looks like you'll need the following:

#gridArea{ text-align: center; }
.card {display: inline-block }

and then remove float: left; on .card

Link to JSFiddle

Post a Comment for "Center A Grid Of Divs (dynamically Generated)"