Structure

Classes that relate to overall core page structure.

Page Structure

Class
Name
Properties
page-wrapper
Page Wrapper
No styles required
main-wrapper
Main Wrapper <main> tag
Set as <main> tag in Element Settings panel
section-[section-name]
Section identifier
Set as <section> tag in Element Settings panel
page-padding
Global left-right padding
/*  Desktop */
padding: 0 2.5rem; /* 40px */

/* Mobile */
padding: 0 1.25rem; /* 20px */
container
Container
margin: 0 auto;
width: 100%;
max-width: 80rem; /* 1280px */

About Page Structure

Page structure refers to the barebones elements when defining the structure of a page. These classes, when placed in subsequential order from top to bottom, define structure from an elemental level all the way to section and page level.

To begin placing content on a page:

  • Start with a div block with the class of page-wrapper. This houses all visible content within a page
  • Place another div block with a class of main-wrapper. Set .main-wrapper as <main> tag in the element settings panel. When the <main> tag is applied, this signals to search engines that this is the main content on a page. Navigation components, such as navbars and footers are excluded from the main-wrapper div
  • Define sections using the section element with a class of section-[section-name]. Replace [section-name] with a word or phrase that defines the content within the section (i.e. section-hero-header, section-news, section-faq, etc.)
  • Place a div within each section with the class of page-padding. This defines horizontal padding to be used on all breakpoints
  • Place a container element with the class of container inside of each page-padding block. This is the block that defines content max-width on a page

Max Widths

Class
Name
Properties
max-width-full
Max Width Full on all breakpoints
width: 100%;
max-width: none;
max-width-full-tablet
Max Width Full on all tablet and below
/* Tablet and below */
width: 100%;
max-width: none;
max-width-full-mobile-landscape
Max Width on all mobile landscape and below
/* Mobile Landscape and below */
width: 100%;
max-width: none;
max-width-full-mobile-portrait
Max Width on all mobile portrait
/* Mobile Portrait */
width: 100%;
max-width: none;
max-width-xxlarge
Max Width XXLarge
width: 100%;
max-width: 80rem; /* 1280px */
max-width-xlarge
Max Width XLarge
width: 100%;
max-width: 64rem; /* 1024px */
max-width-large
Max Width Large
width: 100%;
max-width: 48rem; /* 768px */
max-width-medium
Max Width Medium
width: 100%;
max-width: 32rem; /* 512px */
max-width-small
Max Width Small
width: 100%;
max-width: 20rem; /* 320px */
max-width-xsmall
Max Width XSmall
width: 100%
max-width: 16rem; /* 256px */
max-width-xxsmall
Max Width XXSmall
width: 100%;
max-width: 12rem /* 192px */

About Max Widths

Max width classes are secondary utility classes that pair with the main structure classes. These are defined within the main container element when you want elements to be smaller width than the main container. They contain max widths from 2XSmall to 2XLarge (2X Large being the same width as the container) with max-width-full with breakpoint-sepcific parameters.

Overflow

Class
Name
Properties
overflow-visible
Overflow Visible
overflow: visible;
overflow-hidden
Overflow Hidden
overflow: hidden;
overflow-scroll
Overflow Scroll
overflow: scroll;
overflow-auto
Overflow Auto
overflow: auto;

About Overflow

The overflow CSS shorthand property sets the desired behavior for an element's overflow (i.e. when an element's content is too big to fit in its block formatting context) in both directions. There are classes that match the four overflow properties.

There is no currently feasible way to define axis-dependent overflow properties (overflow-x, overflow-y) inside of Webflow without the use of custom code.

Z-Index

Class
Name
Properties
z-0
Z-Index 0
z-index: 0;
z-10
Z-Index 10
z-index: 10;
z-20
Z-Index 20
z-index: 20;
z-30
Z-Index 30
z-index: 30;
z-40
Z-Index 40
z-index: 40;
z-50
Z-Index 50
z-index: 50;
z-top
Z-Index Top
z-index: 999;
z-auto
Z-Index Auto
z-index: auto;

About Z-Index

The z-index CSS property sets the z-order of a positioned element and its descendants or flex items. Overlapping elements with a larger z-index cover those with a smaller one. There are 6-defined layers of Z-index that go in increments of 10 starting from 0 and ending at 50. There is also a class of top for information that has the highest priority level on the page (i.e. navbars, modals, etc.)