Skip to main content

Using an image as background for a page

This article will discuss how to set a background image to a page using custom CSS.

add-page.png

Go to the Page Builder, select the page you wish to customize, and add an image component to the page. 

add-page.png

Use the image component to upload the image you wish to use for your page background. Disable the image from popping up when clicked by setting the Enable Modal Popup setting to No. Then click Ok.

add-page.png

add-page.png

add-page.png

Next, please Click over the uploaded image on the page, click on its gear Options.
A new Design window will open up with several tabs to customize the image's design. Select the CSS tab and copy and paste the following within the Additional CSS Classes section:

background-image

add-page.png

Click on Update and Save and then add the following code to the CSS section of the page.

.background-image{
    position: fixed;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: -12;
}
img.background-image{
    height: 100%;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

add-page.png

Once you click Save CSS, the uploaded image will appear as the background image for this page on the live app.

add-page.png