A
A
Alexander2015-08-25 14:51:25
HTML
Alexander, 2015-08-25 14:51:25

How to properly set the background color of a Bootstrap block?

I am making changes to the bootstrap template for the first time, I came across the fact that I need to set the background color for the block, but the block has padding-left + padding-right by 15px by default and it turns out that when I set the color, another piece is filled to the right (seen in the screenshot) , how to make it so that the fill on the right side is aligned with the rest of the blocks (menu and breadcrumbs) ?
472c0f1a771c49189006102501c57e92.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey delphinpro, 2015-08-25
@Al3xanderG

background-clip: content-box;the fill will exclude borders and padding (border, padding)

A
Andrey, 2015-08-25
@svistiboshka

Do not style the grid, create an additional block in it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question