Skip to main content
All CollectionsDeveloper ToolsCustom CSS/HTML
Landscape of HTML and CSS in Jebbit
Landscape of HTML and CSS in Jebbit
Updated over 3 weeks ago

Video Explanation (~1 minute)


HTML

Some text elements in the builder allow you to access and edit their relative HTML. If you select an element and click the “</>” icon you'll be given an editor window:

[video-to-gif output image]

CSS

You can add CSS either locally or globally within a Jebbit experience.

To add local CSS, navigate into a particular screen's editor and select “Show custom css".

Checking this box will open an editor where you can target elements and customize them using CSS or SASS.

To set a custom class

If you select an element in the Editor, a "Class Name" text input will show that will allow you to set a custom class. This is the most reliable way to target an element.

To access global CSS, click the design button in the top right of the builder map and toggle "Show custom css". CSS placed here will apply to all the screens in an experience.

Main Classes

When adding elements to a screen, classes will be assigned by default. Let’s take a look at this sample screen:

...and add some labels:

Here you can see general class labels as they’ve been written into the image.

The main content block you’ll be working with is “content-block-inner”. As you can see, this contains most of our page’s elements aside from the logo. The logo is given its own wrapper “campaign-logo-wrapper” and is a sibling of “content-block-inner”. Both of these are children to the main parent class “content-block-primary”, which essentially contains most everything on a given screen.

Now that we understand some of the general, encompassing classes, let’s take a look at individual page elements. Added elements will always follow the naming convention: “content-piece-wrapper-x”, with “x” being the numerical placement. The first, top-most, element is 0 and then each subsequent container is incremented by 1.

Class examples while inspecting

Container/Column Structure

The Jebbit builder gives access to container elements. Let’s take a look at how classes work within. In this example we’ll look at a two column container:

Each column contains two buttons and is labeled with “column-wrapper”, and “column_0” and “column_1” respectively. Each button is given its own class wrapper that contains its own position and its parent column’s position. So “Button B” being in column “0” and being the second button in that column, leads to its label being “content-piece-wrapper-column_0-1”. If we added an additional column, the next class would be “column-wrapper column_2” and so on.

[video-to-gif output image]
Did this answer your question?