Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save philipgledhill/78fd31388cd2d80de9b0abe006949de0 to your computer and use it in GitHub Desktop.
Save philipgledhill/78fd31388cd2d80de9b0abe006949de0 to your computer and use it in GitHub Desktop.
The column and col parameters I use most
Mai Building Blocks 2: Column usage examples with additional parameters
These are the columns & col shortcodes I use most often. There are more available in the official documentation.
[columns]
[col]
[/col]
[/columns]
[columns gutter="50"]
[columns style="border: 1px solid #f4f4f4;"]
[col style="border: 1px solid #f4f4f4;"]
[col align="center"]
[col bg="ffe6e6"]
[col bottom="20"]
[col class="some-class another-class"]
[col id="my-column"]
[col image="123"]
[col image_size="one-half"]
[col overlay="dark"]
[columns]
[col]
<h3></h3>
[/col]
[col]
<h3></h3>
[/col]
[col]
<h3></h3>
[/col]
[col]
<h3></h3>
[/col]
[/columns]
[col][/col]
[col_auto][/col_auto]
[col_one_twelfth][/col_one_twelfth]
[col_one_sixth][/col_one_sixth]
[col_one_fourth][/col_one_fourth]
[col_one_third][/col_one_third]
[col_five_twelfths][/col_five_twelfths]
[col_one_half][/col_one_half]
[col_seven_twelfths][/col_seven_twelfths]
[col_two_thirds][/col_two_thirds]
[col_three_fourths][/col_three_fourths]
[col_five_sixths][/col_five_sixths]
[col_eleven_twelfths][/col_eleven_twelfths]
[col_one_whole][/col_one_whole]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment