A ui page grid
uses padding
to maintain fluid page gutters. Each columns width will continuously adjust as your browser width changes to maintain the same percentage of overall browser width
Page grids work best for wide multi-column pages like homepages.
A container is a fixed width element that wraps your site's content. It is not fluid in size and uses margin to center. Containers work best for centered content that is placed inside a containing box like a ui segment
Sometimes you just need to put a single column of centered text on a page. A ui text container
is a special type of container designed to optimize for a single flowing column of text, like this instructions on this page.
Text containers do not need to use grids and help simplify basic page layouts.
A grid does not necessarily need to specify rows. If you include columns
as direct child of ui grid
content will automatically flow to the next row when all the grid columns are taken in the current row.
Adding row wrappers allow you to manually specify you want a new row to begin. This can be useful when centering content with a ui centered grid
.
Some special variations that format grids like tables require you to specify rows. For example a divided grid
or a celled grid
requires row wrappers.
If a row does not take up all sixteen grid columns, you can use a ui centered grid
, centered row
, or centered column
to center the column contents inside the grid.
Since Semantic UI's grid is based on flex box, a left floated
item should come first, and a right floated
item last in its row.
You can specify text alignment using alignment variations on a grid, row, or column level.
You can specify vertical alignment on a grid, row, or column level.
Specifying a column count will divide columns into rows of predetermined column count. Additional columns will automatically flow to the next row.
Specifying an equal width grid
will automatically determine column sizes to fit evenly inside one row
The Semantic grid system has three tiers of classes: mobile (phones), tablet (tablets), computer (desktops and larger desktops) You can use nearly any combination of these classes to create more dynamic and flexible layouts
Breakpoints are 768px and below for mobile, 768-992px for tablet and 992px+ for computer
In these cases below, we'd like to recommend you to change size of your viewport or use right devices for responsiveness experience