Course Technology Cengage Learning New Perspectives on HTML5 and CSS3, 8th Edition
Tutorial 3

Grid Alignment

This demo explores how to align a grid within its container when the container is larger than the fixed space alloted to the grid. To position the grid vertically within the container, use the align-content property. To position the grid horizontally, use the justify-content property.

To explore the values associated with these two properties, use the web form controls below and view their impact on the preview grid on the right.

Align and Justify Styles


Page Header
Navigation List
Article 1
Article 2
FAQ
Page Footer
align-content: start;
justify-content: start;