V
V
Vadim Stepanenko2019-10-22 23:26:18
css
Vadim Stepanenko, 2019-10-22 23:26:18

How to set the background of a container correctly?

There is a site with a red background, bootstrap grid. How to properly highlight .container with white color?
Options:
1. Directly assign bg #fff to the .container class. But then the container content will have 15px padding due to container padding and .row
2. Implement via the following structure: .container -> .row -> .col-md-12 -> .bgWhite -> .row -> . col-md...
The second option is obviously incorrect and a crutch, but with its help I get what I need.
Docks studied, did not find anything about this. Please help, how to implement it correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lord_Dantes, 2019-10-22
@Lord_Dantes

If the site is divided into sections yes and no, however, I always select section (section name) first and then container row ...
And so you can freely set the background to indent from the section itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question