Studio Editor: Using a Container to Create a Vertical Section

5 min read
Vertical sections are not available in the Studio Editor. However, you can use a pinned container to achieve a similar effect, making it look just like a sidebar section.
Example of the end result - a sidebar section used for navigation on a live site created on the Studio Editor

Step 1 | Add a container and apply a grid

First, add a container and set its height to 100vh so it takes up the entire screen's height. Then, apply an advanced CSS grid with the row's size set to Auto.   

To add a container and apply a grid:

  1. Add a container from the Add Elements panel  in the Studio Editor.
  2. Change the container's height to 100vh:
    1. Click the Open Inspector arrow  at the top right of the editor.
    2. Click the More Actions icon  next to Size.
    3. Enable the Advanced Sizing toggle.
    4. Set the Height to 100vh.
      Tip: Click the current unit of measure (e.g. %, px) to change it.
  3. Apply a CSS grid on the container:
    1. (In the Inspector) Scroll down to Layout.
    2. Click Apply next to Advanced CSS Grid.
    3. Click Rows.
    4. Click the current size measurement to change it to Auto.
Setting the grid row size to Auto in the Inspector panel

Step 2 | Attach the container to the header

Drag the container onto the current page's header to attach it. This resizes the header according to the container, but we'll change the height back in the Inspector panel. 
Then, pin the header so the container stays visible as visitors scroll up and down the page.

To attach the container to the header:

  1. Drag the container to attach it to the page's header. 
  2. Resize the header:
    1. Select the header.
    2. Click the Open Inspector arrow  at the top right of the editor.
    3. Click the More Actions icon  next to Size.
    4. Enable the Advanced Sizing toggle.
    5. Set the Height to the desired value in px.
      Tip: Click the current unit of measure (e.g. %, vh) to change it.
  3. Scroll down to Position.
  4. Select Pinned from the Position type drop-down.
Side-by-side view of the Inspector panel and the header with the container attached

Step 3 | Align the container and add padding to the page

Now, it's time to place the container. Depending on where you want it to appear, align the container to the top and left / the top and right corners.
The final step is adding padding to the relevant side of the page – this prevents the container from covering the page's content. 

To align the container and add padding:

  1. Select the container.
  2. (In the Inspector) Align the container to the top and left / right:
    1. Click the Align to Top icon .
    2. Click the Align to Left icon  / Align to Right icon .
  3. Add padding to the page:
    1. Click Page at the top of the Inspector.
      Selecting the page in the breadcrumbs at the top of the Inspector panel
    2. Under Position, set the padding to be the same width as the container.
      For example, if the container width is 20% and located on the left side of the page, the left padding should also be set to 20%.
      Setting the page padding in the Inspector panel

Step 4 | Customize the container

The container is now ready for you to use as a sidebar section. Add any elements you need and design the container from the Inspector panel. It should look like in the example below – attached to the header and taking up the entire screen height as you scroll up and down the canvas. 
Example of a container turned into a sidebar section using the instructions in the article

Did this help?

|