You can apply the
centered CSS class to full-width groups or modules to center content in the page:
In the following figure the modules/groups marked with an x are divided and cannot be used as Centered elements:
By default, the centered wrapper has 30px padding left and 30px padding right for good looking screen edges, which is excluded from nested centered wrappers (a centered wrapper inside another) so the padding is not cumulative unless you add some.
Along with the
centered class you can also use the helper classes to specify a width for your content (expressed in pixels):
And you can do that also depending on screen size. On medium-sized screens (viewport width lower than 1280px) you can add this prefix:
md-. On small-sized screens (viewport width lower than 768px) you can add this prefix:
sm-. On very small screens (viewport width lower than 480px) you can add this prefix:
centered w1600 md-w900 sm-w500 xs-w250
This will make your centered wrapper 1600px wide on large screens, 900px wide on medium sized screens, 500px wide on small screens and 250px wide on extra small screens.