11. Adding a Section
It’s time for you to start adding some components to the canvas. Let’s start with the top-level with sections as well as their different styling properties.
Adding a Basic Section
Adding Other Types of Sections
Styling a Section
Section Height
Section Padding
Fixed Background
Adding a Basic Section
Following what we’ve learned so far. You’ll need to add a section onto the canvas in order to add elements such as text boxes or images to that section.
Let’s start off by adding a basic section. You can add a basic section to the canvas by firstly selecting the section icon from the top bar navigation. Alternatively you can use the keyboard shortcut [K]. With the section selected, hover your mouse over the top or bottom of an existing section on the canvas or if you have no sections on your canvas yet, hover the mouse at the top of the canvas. You’ll see a highlighted blue box that signals where this new section will appear. Simply click to place it in this area.
Adding Other Types of Sections
There are also variety of different types of sections that are available inside of the add menu. In order to access this, you’ll need to navigate to the add menu icon in the left-hand-side content panel. Under Elements you’ll be able see all components that are available inside of Vev. From here you can view all components under different subcategories and also get a preview of what each component does by clicking the i tooltip. You can search the library using the search bar at the top of this menu or filter to only show types of sections by clicking the filter icon beside the search bar.
Bear in mind that some components can work as either a section or an element. With these components you’ll either need to click-and-drag them onto the canvas to add them as an element or to add them as a section, hover at the top or bottom of existing sections to get the same preview as when added a basic section.
Styling a Section
To style a section, simply select the desired section and navigate to the style-panel on the right-hand side. From here you will see styling options relevant to the selected section. For example, this is where you would need to navigate in order to change the background using either a fill colour, gradient or background image. You can even have multiple layers using a variety of these techniques.
With certain types of sections, such as video components, you will need to double-click the section itself to open up the properties settings. Alternatively, you can right-click the section and select Edit content.
Section Height
A section’s height is specified by minimum height (Min H). This is a CSS property that ensures that the section will not shrink below the defined minimum height, even if the content is smaller.
Minimum height allows you to resize your section according to the content you are working with, so you don't have to manually adapt the height to fit its content. You can easily use Min H as a regular height by manually adjusting it, but it can never be smaller than your content.
It’s worth noting that with the Min H property, the section's height will automatically increase to accommodate any content that exceeds the minimum height, ensuring all elements are properly contained.
Section Spacing & Clipping
To ensure you have a set amount of padding at the top and bottom of the section, you can add section spacing from the Layout area within the style panel. This will appear when any type of section is selected. Here you can define a px, %, vw or vh value. This is great to ensure you have consistency of padding across all your sections and the padding will be taken into consideration if your section’s minimum height is exceed by the content within it.
You are also able to control content clipping from this menu. Underneath the spacing options you will see a dropdown for clipping. You can also clip the contents of your section in a variety of different shapes.
Fixed Background
When using a background image for your section, the default behaviour is the background will scroll like normal with the page. If you want the background image to be fixed, you can easily change this from the Scroll option within the style panel when you have the section selected. Simply click the drop-down and select Fix background.
→ Next up, let’s explore: Adding an Image Element