Semantic-UI grid examples

Basic grid layouts to get you familiar with building within the Semantic-UI grid system.

Three equal columns

Get three equal-width columns starting at desktops and scaling to large desktops. On mobile devices, tablets and below, the columns will automatically stack. If you want it to shrink rather than stack, you can remove the "stackable" class.

.column

.column

.column

Three unequal columns

Get three columns starting at desktops and scaling to large desktops of various widths. Remember, grid columns should add up to sixteen for a single horizontal block. More than that, and columns start stacking no matter the viewport.

.four.wide.column

.eight.wide.column

.four.wide.column

Two columns

Get two columns starting at desktops and scaling to large desktops.

.ten.wide.column

.six.wide.column

Full width, single column

No grid classes are necessary for full-width elements.

Two columns with two nested columns

Per the documentation, nesting is easy—just put a row of columns within an existing column. This gives you two columns starting at desktops and scaling to large desktops, with another two (equal widths) within the larger column. At mobile device sizes, tablets and down, these columns and their nested columns will stack.

.ten.wide.column

.eight.wide.column

.eight.wide.column

.six.wide.column

Mixed: mobile and desktop

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.

Here, you would see the computer, tablet, mobile only columns appear and disappear when you change the browser's viewport width.

.ten.wide.computer.only.column

.six.wide.computer.only.column

.computer.only.column

.computer.only.column

.computer.only.column

.column

.column

Mixed: mobile, tablet and desktop

.ten.wide.computer.only.column

.six.wide.computer.only.column

.ten.wide.tablet.only.column

.six.wide.tablet.only.column

.mobile.only.column

.ten.wide.mobile.only.column

.computer.tablet.only.column

.computer.tablet.only.column

.computer.tablet.only.column

Column clearing

Grid will automatically clear previous columns, which presents clear floats with uneven content.

.eight.wide.mobile

.four.wide.tablet

.four.wide.computer

.eight.wide.mobile

.four.wide.tablet

.four.wide.computer

.eight.wide.mobile

.four.wide.tablet

.four.wide.computer

.eight.wide.mobile

.four.wide.tablet

.four.wide.computer

Reversed and doubling

Reversed grid allows you to reverse the order of columns according to devices.

Doubling grid will double columns' width for each device jump.

Change the width of browser to see the responsive effects.

Left

Middle

Right

.column

.column

.column