Introduction

While Style Manager makes it easy to make changes to your Builder site visually, to go in-depth and make different modules of the same kind look differently and to do advanced customizations theme's style.css should be edited.

A knowledge of CSS and Firebug usage really helps. Firebug, a Firefox add-on is an awesome tool in figuring out element's classes, ID, padding, margin etc. Please install it in your Firefox before reading further.

We have a series of videos on advanced CSS in Builder. Please watch them by clicking here.

BuilderChild-Default has been taken as the active theme for the scope of this guide. However, most of the CSS applies to all Builder child themes.

All CSS changes should be done in style.css of the active theme which should be a child theme of Builder. You can either edit already existing styles or write them at the very end. Generally we advise users to write custom styles at the end of child theme's style.css. This forum post explains why.

Because of the vast number of classes that Builder makes available, there are several ways of targeting the same element and hence the following is not the only way of going about it. There is more than one way to skin a cat.

To make the container touch the top edge of browser

.builder-container-outer-wrapper {
margin-top: 0;
}

Before and After

To remove gap between each module

.builder-module {
margin-bottom: 0;
}

Before and After

To remove the top and bottom borders for all modules

.builder-module {
border-top: none;
border-bottom: none;
}

Before and After

To target a specific module

#builder-module-4d396c72bbb6b {
}

Note: Replace builder-module-4d396c72bbb6b with the ID of module in question on your site.

Note: Change builder-module-4ddb5b00e3efd to ID of module in question.

2-widget widget bar

The CSS below applies to a specific widget bar having a ID of builder-module-4d3956642cc05. The easiest way to obtain a module's ID is by inspecting the element with Firebug. If all widget bar modules are to be targeted, .builder-module-widget-bar should be used instead of #builder-module-4d3956642cc05.

To target any widget in the left widget area:

#builder-module-4d3956642cc05 .left .widget {
}

To target any widget in the right widget area:

#builder-module-4d3956642cc05 .right .widget {
}

3-widget widget bar

The CSS below applies to a specific widget bar having a ID of builder-module-4d3956642cc05. The easiest way to obtain a module's ID is by inspecting the element with Firebug. If all widget bar modules are to be targeted, .builder-module-widget-bar should be used instead of #builder-module-4d3956642cc05.

To target any widget in the left widget area:

#builder-module-4d3956642cc05 .left .widget {
}

To target any widget in the middle widget area:

#builder-module-4d3956642cc05 .middle .widget {
}

To target any widget in the right widget area:

#builder-module-4d3956642cc05 .right .widget {
}

4-widget widget bar

The CSS below applies to a specific widget bar having a ID of builder-module-4d3956642cc05. The easiest way to obtain a module's ID is by inspecting the element with Firebug. If all widget bar modules are to be targeted, .builder-module-widget-bar should be used instead of #builder-module-4d3956642cc05.

To target any widget in the left most widget area:

#builder-module-4d3956642cc05 .left .widget {
}

To target any widget in the second widget area:

#builder-module-4d3956642cc05 .widget-wrapper-2 .widget {
}

To target any widget in the third widget area:

#builder-module-4d3956642cc05 .widget-wrapper-3 .widget {
}

To target any widget in the right most widget area:

#builder-module-4d3956642cc05 .right .widget {
}

5-widget widget bar

The CSS below applies to a specific widget bar having a ID of builder-module-4d3956642cc05. The easiest way to obtain a module's ID is by inspecting the element with Firebug. If all widget bar modules are to be targeted, .builder-module-widget-bar should be used instead of #builder-module-4d3956642cc05.

To target any widget in the left most widget area:

#builder-module-4d3956642cc05 .left .widget {
}

To target any widget in the second widget area:

#builder-module-4d3956642cc05 .widget-wrapper-2 .widget {
}

To target any widget in the third widget area:

#builder-module-4d3956642cc05 .widget-wrapper-3 .widget {
}

To target any widget in the fourth widget area:

#builder-module-4d3956642cc05 .widget-wrapper-4 .widget {
}

To target any widget in the right most widget area:

#builder-module-4d3956642cc05 .right .widget {
}

Content Module

Removing top and bottom horizontal widget sections when content module is set to have 2 adjacent sidebars

Before and After

Add the following at the end of your theme's style.css:

.builder-module-content .single {
display: none;
}

Footer Module

Defining the scope

By default, style rules apply to all sections of the site. For a finer and granular control, it is possible to restrict the style rules to:

Home (i.e, site's front page)

Posts page

All Pages

A specific Page

All posts

A specific post

All archives and category listings

A specific category

A specific page

To set a background color to a specific page

.page-id-2 {
background-color: #333333;
}

The above sets the background color of body element in a page whose ID is 2 to #333333.

Before and After

IDs of Pages and posts can be obtained in the following ways:

Examining the body element using Firebug

Placing cursor on the Page/post title in edit screen and observing the number in the browser status bar

To set a background color to mutiple pages

.page-id-2, .page-id-4 {
background-color: #333333;
}

The above sets the background color of body element in a page whose ID is 2 and to body element in another page whose ID is 4.

To remove border around images only on certain Pages

To remove border around images only on Pages having IDs 2 and 6

.page-id-2 .hentry img, .page-id-6 .hentry img {
border: none;
}

Miscellaneous

How to make second line in list item to be indented to match up with the text