Websites are built and function differently from tools authors might be more familiar with, such as photo editing or document editing and formatting tools. Each part of a webpage must be carefully constructed to ensure each element on the page not only functions properly, but displays correctly no matter what kind of device (computer, tablet, phone) or what screen size people are viewing the website on.
Every Bookshelf pre-built website template has already been built according to these specific parameters. But there may be instances when you want to build a new section from scratch, or want to change the structure of a pre-built section. If so, it's important to understand how the building blocks of a section must function so that everything you want to place inside it displays and works as intended.
Section Background & Section Layout
Two of the most important elements for every webpage's structural integrity are the Section Background element and the Section Layout element (both found under the Layout category of the Build tool).

They are so important because every element placed on any page of your website must always be placed inside a Section Layout element, and every Section Layout element must always be placed inside a Section Background element. This is how each section of a webpage keeps its structure intact yet fluid no matter what kind of device or screen size your website is being viewed on.
Think of constructing a webpage like cooking a pot of soup: The stovetop is your Section Background. The pot is your Section Layout. All the other elements you want to use (images, text, buttons, signup forms, etc.), are the ingredients.
First, you must place a Section Background as the backdrop surface of your webpage or of the section of the page you're constructing (the stove). Next, you must place a Section Layout on top of that surface to act as the vessel (pot) that will help to contain and control what goes inside it. That leaves your elements (ingredients) to always be placed inside the pot.

Every section of every page of your website must be constructed this way in order for the elements you place to appear and function properly when viewed by visitors to your website. Dragging and dropping elements like images and text at random into the builder without the use of a Section Layout limits how you can then structure and place those elements.
For example, if you drag and drop just an image element onto a webpage on its own, with the intention to use it as your background image, it won't function that way. It will simply be a standalone image in the middle of the page that you can't put anything else on top of. Nor will it size itself properly for viewing across devices and screen sizes.
What you would instead do is place a Section Background element first, and then upload your image to that element if you wanted the image to fill the entire section or page. From there, you would place a Section Layout element inside your Section Background, which will then allow you to lay your other elements like text and buttons on top of the background. You can also upload images to Section Layout elements to function as separate backgrounds, as the example image above does.
Though you have some ability to resize and reorient certain elements individually, how those elements sit within a section of your website and in relation to one another is primarily controlled by the settings of the Section Layout they sit within. In the screenshot below, you can see some examples of this:

The Container setting refers to how many side-by-side columns (up to 4) you would like to divide the Section Layout into. This is what will allow you to place elements side by side within a single section.
The Width setting refers to how wide across your entire Section Layout element is. Changing this can affect how elements inside the Section Layout sit.
The Horizontal Alignment setting refers to how the elements you place in each container of a Section Layout will sit within that Section Layout: justified left, centered, or justified right.
Vertical Spacing refers to the space you'd like between each element you place on top of one another (while Horizontal Spacing effects elements you place next to one another when using multiple Containers).
These are just a few examples of all the settings you can adjust in a Section Layout element. We encourage you to explore them fully and experiment with them in the Page Builder yourself to help get a feel for how certain adjustments can affect the layout of a section.
Remember, you can add as many website projects to your Bookshelf account as you would like, and only ever need publish the one you want to make live. So we recommend always having an "experimental" project in your Page Builder that you can use to test features and settings as needed.
Section Layouts Adapt to Fit Some Elements
While Section Layouts do greatly affect the placement and display of the elements inside them, they are built with their own fluidity as well (as are Section Backgrounds). This helps to make sure the elements you add, such as large photos or long paragraphs of text, aren't cut off unintentionally by the size of the Section Layout.
If building from scratch, you'll find that when you place an image element within a Section Layout, and then upload an image file to it that's very large, the entire Section Layout will expand to accommodate that image. Then, if you add just a few lines of text next to the image, the Section Layout will remain the same large size. This is because Section Layouts have been built to fluidly accommodate the largest element placed within them.
If you want the elements in a Section Layout to be closer to each other in size, simply adjust the size of the biggest element first. In this case, that would be the image you placed. Brand new images placed on a page always default to "Auto" size, or the actual image file size. To adjust it, click into the size box and type in your preferred size, which will be the width of the image in pixels.

If you're using a pre-built website template, many images within those templates have already been adjusted from their "auto" size to a different size that better suits that template. So when replacing template images with your own images, just take care to adjust the size of the image as needed, and notice how it may or may not affect the overall size of the Section Layout, and make adjustments where needed accordingly.
As long as you remember to always place a Section Background first, and a Section Layout within it second, you will have the baseline building blocks you need to construct an entire section of your webpage to your liking.
Pro Tip: you can place multiple Section Layouts within a Section Background if you would like certain sections on the page to share the same background color or image. Or, you can always place individual Section Backgrounds for each section you build if you want them to be truly distinct from one another.
Even when you're building from a pre-built template provided by The Bookshelf, we recommend only replacing the smaller elements within a section, rather than deleting and replacing an entire Section Background or Section Layout itself. Deleting one or the other will delete all the elements within them, leaving you having to build it entirely from scratch over again.
Want to watch a step-by-step tutorial on how to construct a section from scratch? Check out this YouTube tutorial.
If you have any questions about building your website, feel free to reach out to our team at support@thebookshelf.io.
