{"id":7053,"date":"2018-03-09T09:58:11","date_gmt":"2018-03-09T14:58:11","guid":{"rendered":"https:\/\/www.med.unc.edu\/webguide\/?page_id=7053"},"modified":"2025-02-04T14:25:09","modified_gmt":"2025-02-04T19:25:09","slug":"columns","status":"publish","type":"page","link":"https:\/\/www.med.unc.edu\/webguide\/userguide\/styling-content\/columns\/","title":{"rendered":"Columns"},"content":{"rendered":"

Columns\u00a0can be used to lay out content side by side. In the example below I used a 2-column layout to arrange the buttons side by side.<\/p>\n

\n
\n

<\/i> Button 1<\/a>\n<\/div>\n

\n<\/i> Button 2<\/a>\n<\/div>\n<\/div>\n

These columns are actually a 12-block grid systems that can be used for creating unique page layouts.
\n

\n
\n

1<\/p>\n<\/div>\n

\n

2<\/p>\n<\/div>\n

\n

3<\/p>\n<\/div>\n

\n

4<\/p>\n<\/div>\n

\n

5<\/p>\n<\/div>\n

\n

6<\/p>\n<\/div>\n

\n

7<\/p>\n<\/div>\n

\n

8<\/p>\n<\/div>\n

\n

9<\/p>\n<\/div>\n

\n

10<\/p>\n<\/div>\n

\n

11<\/p>\n<\/div>\n

\n

12<\/p>\n<\/div>\n<\/div>\n

You’ll never\u00a0want to use 12 columns: there’s just not enough space for content. Instead, you can group the columns together to create wider columns.\u00a0 Two and three column layouts like the examples below are the most common.<\/p>\n

\n
\nColumn 1<\/div>\n
\nColumn 2<\/div>\n<\/div>\n

 <\/p>\n

\n
\n

\"\"<\/p>\n

EDUCATION<\/h2>\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel nibh pretium, luctus libero nec, tristique nunc. Vivamus neque purus, pellentesque sed faucibus eget, varius eget urna.<\/p>\n<\/div>\n

\n

\"\"<\/p>\n

RESEARCH<\/h2>\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel nibh pretium, luctus libero nec, tristique nunc. Vivamus neque purus, pellentesque sed faucibus eget, varius eget urna.<\/p>\n<\/div>\n

\n

\"\"<\/p>\n

PATIENT CARE<\/h2>\n

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel nibh pretium, luctus libero nec, tristique nunc. Vivamus neque purus, pellentesque sed faucibus eget, varius eget urna.<\/p>\n<\/div>\n<\/div>\n

 <\/p>\n

How to Add Columns<\/h2>\n
    \n
  1. Ensure the Toolbar Toggle<\/strong> button has been selected. The Toolbar Toggle button shows and hides a collection of buttons in the editor.
    \n\"Toolbar<\/li>\n
  2. Select Columns<\/strong> from the Content Elements Dropdown <\/strong>button in the editor.
    \n\"EBS<\/li>\n
  3. In the pop-up dialog box you will need to modify the settings.\n
      \n
    1. No of Columns<\/strong> – select the number of columns you wish to use.<\/li>\n
    2. Column Specification<\/strong> – allows you to define the width of your columns.\u00a0 Remember, this is a12-block grid system so the width of all columns must equal 12.\u00a0 If you want to lay out content in 2 equal columns, set\u00a0each column to 6 blocks\/columns each because 6 + 6 = 12:\"twoIf you want to lay out content in\u00a03 equal columns, set\u00a0each column\u00a0to\u00a04 blocks\/columns each because\u00a04 +\u00a04 + 4\u00a0= 12:\"three<\/li>\n
    3. Screen Size<\/strong> (Large, Medium, Small and X-small) – allows you to specify the width of your columns for various screen sizes.\u00a0 What looks good on a large monitor doesn’t always\u00a0look good on a small phone display.\u00a0 Being able to specify the width of your columns for various screen sizes makes your content responsive and easier for site visitors to read.\u00a0 Instead of having a 3-column layout for all screen sizes, you might want to have the content in the columns stack on top of each other on small screens like a phone.\u00a0 To do this set the column width for Large, Medium and Small screens to\u00a04 and the X-small screen to 12.\u00a0 As a general rule of thumb, the Large, Medium and Small screen size for each column will be the same\u00a0number of\u00a0blocks\/columns and the X-small screen size should be set to 12.<\/li>\n
    4. The custom class<\/strong> field allows you to add any other specific class you your columns. One class that could be helpful is “center-content”<\/strong>. This will make your columns center on the page, which also makes sure your content stacks in the center on a small screen.<\/li>\n
    5. Click the Insert Columns<\/strong> button.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n

      The Code<\/h2>\n

      Once you’ve finished with the column specifications and clicked the Insert Columns<\/strong> button (as explained above), some code will be place on your page.\u00a0 This “shortcode” is what defines your columns.\u00a0 The shortcode is pretty easy to read.\u00a0 It starts with an opening\u00a0[row]<\/strong> tag and ends with a closing [\/row]<\/strong> tag.\u00a0 Within the row is code for each column.\u00a0 A starting column [column]<\/strong>\u00a0and ending [\/column]<\/strong> tag.\u00a0 Within each column tag is the word Text<\/strong>.\u00a0 Simply\u00a0replace the word Text with your own content. Be sure to keep all your content within the opening and closing [column]\u00a0 [\/column] tags.<\/strong><\/p>\n

      Not All Columns Are Created Equal<\/h2>\n

      You don’t have to keep your columns an equal width.\u00a0\u00a0Feel free to vary the width\u00a0to get different layouts.\u00a0 Just remember that\u00a0the width of all columns must equal 12<\/strong> (for every screen size).<\/p>\n

      Examples<\/h2>\n

      ºÚÁÏÍø Orthopaedics<\/h3>\n

      The home page of the Orthopaedics<\/a> web site uses a 2-column layout with a slider in one column and some custom styled buttons in the second. Note that sliders pose accessibility issues and are being phased out.\u00a0 The left column has a weight of 9 and the right column has a weight of 3.<\/p>\n

      \"Example<\/p>\n

      TEACCH Autism Program<\/h2>\n

      The TEACCH home page uses a similar layout to Orthopaedics but it’s column weight is 8 and 4.<\/p>\n

      \"Example<\/p>\n

       <\/p>\n","protected":false},"excerpt":{"rendered":"

      Columns\u00a0can be used to lay out content side by side. In the example below I used a 2-column layout to arrange the buttons side by side. These columns are actually a 12-block grid systems that can be used for creating unique page layouts. You’ll never\u00a0want to use 12 columns: there’s just not enough space for … Read more<\/a><\/p>\n","protected":false},"author":3206,"featured_media":0,"parent":2212,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"layout":"","cellInformation":"","apiCallInformation":"","footnotes":"","_links_to":"","_links_to_target":""},"class_list":["post-7053","page","type-page","status-publish","hentry","odd"],"acf":[],"_links_to":[],"_links_to_target":[],"_links":{"self":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/7053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/users\/3206"}],"replies":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/comments?post=7053"}],"version-history":[{"count":50,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/7053\/revisions"}],"predecessor-version":[{"id":12736,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/7053\/revisions\/12736"}],"up":[{"embeddable":true,"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/pages\/2212"}],"wp:attachment":[{"href":"https:\/\/www.med.unc.edu\/webguide\/wp-json\/wp\/v2\/media?parent=7053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}