# How to set background of blocks: Bootstrap containers, rows and columns in TinyMCE and CKEditor

> Give a container, row or column its own color, gradient or image with the Set Background button, layered one over another.

Source: https://n1ed.com/how-to/bootstrap/content/how-to-set-bootstrap-block-background  
Section: Bootstrap blocks > Editing content > Set block background  
Updated: 2026-09-20  
Every page of n1ed.com has a Markdown copy at its URL + `.md` (`index.md` after a URL that ends in `/`); all of them are in one file: https://n1ed.com/llms-full.txt

When you select a Bootstrap container, row, or column, which are [elements of blocks](https://n1ed.com/how-to/bootstrap/content/bootstrap-12-column-structure-basics), their style settings are displayed in the sidebar. The background is a part of [styles](https://n1ed.com/how-to/bootstrap/content/how-to-change-bootstrap-block-styles), and it can be edited using the "Set Background" button. The editor will indicate the set background styles near this button and, of course, immediately apply them to the content.

![How to set background of Bootstrap container in CKEditor or TinyMCE](https://n1ed.com/img/how-to/bootstrap/content/how-to-set-background-for-bootstrap-block.png)

*Click the button to open the background editing dialog*

Backgrounds of all block elements can be set independently. You can think about their priority as layers on a canvas. The container's background goes at the bottom of the stack, then the background of the row, and finally the background of the columns overlaps the previous ones, but only inside the area managed by the current element.

By default, any element has no background (which means a transparent background) unless you start from a [built-in template](https://n1ed.com/how-to/bootstrap/editor/how-to-insert-bootstrap-blocks) or [custom template](https://n1ed.com/how-to/bootstrap/templates/how-to-use-bootstrap-block-templates) with a pre-set background.

![Setting repeating image background for Bootstrap container](https://n1ed.com/img/how-to/bootstrap/content/bootstrap-container-background.png)

*Setting a pattern for Bootstrap block background*

The background consists of three parts: color, gradient, and image. You can set all three of them or omit some. Usually, you only need to set one of them, but when setting an image, it can be helpful to also set a plain color or gradient to optimize your website's loading time. This is because the browser will fill the area with the specified color/gradient immediately while loading the image.

![Bootstrap container and row with backgrounds set using CKEditor or TinyMCE](https://n1ed.com/img/how-to/bootstrap/content/bootstrap-block-template-with-set-background.png)

*Result of setting a background to Bootstrap block*

In the sample screenshots, we've illustrated setting a pattern image background for the outer container and a solid white background for the inner row.
