Grid

Using Predefined HTML Classes

Create powerful multi-device layouts quickly and easily with the 12-column, nestable Foundation grid. If you’re familiar with grid systems, you’ll feel right at home. If not, you’ll learn quickly.

Foundation uses box-sizing: border-box so that borders and padding do not affect the overall width of the columns, making the math dead-simple. Since Foundation is mobile-first, we’ll stack content by default. You do have access to an entirely separate small grid to use up to the 768px breakpoint. This means you can create some pretty complex layouts and even drop columns if you want.

[row]
[one_half][panel type=»regular» ]6[/panel][/one_half]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[one_half][panel type=»regular» ]6[/panel][/one_half]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[one_third][panel type=»regular» ]4[/panel][/one_third]
[two_third][panel type=»regular» ]8[/panel][/two_third]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[three_fourth][panel type=»regular» ]9[/panel][/three_fourth]
[one_sixth][panel type=»regular» ]2[/panel][/one_sixth]
[five_sixth][panel type=»regular» ]10[/panel][/five_sixth]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[one_fourth][panel type=»regular» ]3[/panel][/one_fourth]
[one_third][panel type=»regular» ]4[/panel][/one_third]
[one_third][panel type=»regular» ]4[/panel][/one_third]
[one_third][panel type=»regular» ]4[/panel][/one_third]
[one_half][panel type=»regular» ]6[/panel][/one_half]
[one_half][panel type=»regular» ]6[/panel][/one_half]
[one_whole][panel type=»regular» ]12[/panel][/one_whole]
[/row]

Block Grid

Block grids are made from a ul.small-block-grid-# or ul.large-block-grid-#. These are ideal for blocked-in content generated by an application, as they do not require rows or even numbers of elements to display correctly.

These have a bit of flexibility since you have access to two separate grids between our built in 768px breakpoint. If you use the small-block-grid only, the grid will keep its spacing and configuration no matter the screen size. If you use large-block-grid only, the list items will stack on top of eachother for small devices. If you use both of those classes combined, you can control the configuration and layout separately for each breakpoint.

[row]
[one_whole]

[/one_whole]
[/row]

Добавить комментарий

Ваш адрес email не будет опубликован.