examples/grid.html
A container is a fixed width element that wraps your site's content. It remains a constant size and uses margin to center. Containers are the simplest way to center page content inside a grid.
Sometimes you just need to put a single column of centered text on a page. A text container is a special type of container optimized 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.
Specifying a grid column count will divide columns into rows of predetermined column count. Additional columns will automatically flow to the next row.
column
column
column
column
column
column
You can also specify column widths for each column individually
four wide column
eight wide column
four wide column
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.
Celled Grid
Internally Celled Grid
Divided Grid
Vertically Divided Grid
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.
Left floated
Right floated
You can specify text alignment using alignment variations on a grid, row, or column level.
right aligned column
left aligned column
center aligned row
center aligned row
right aligned column
You can specify vertical alignment on a grid, row, or column level.
Specifying an equal width grid will automatically determine column sizes to fit evenly inside one row
column
column
column
column
column
column
column
You can set columns to double in width at each device jump
column
column
column
column
column
You can set columns to stack on mobile
column
column
column
You can specify columns to appear at different widths on different screens
You can specify columns to appear only a particular screen
ten wide column computer only
six wide column computer only
sixteen wide column mobile only
computer only row
computer only row
computer only row
mobile only column
mobile only column
column
column