I
I
Ilya2018-08-04 17:05:57
css
Ilya, 2018-08-04 17:05:57

The background is full width, but the content is only in the container how?

There is a regular bootstrap grid: .container>.row>.col*2
You need to arrange 2 backgrounds so that they match in the header and in the main part:

  1. So that it would start at the left corner of the screen and end at the end of .col-9
  2. So that would start at the beginning of .col-3 and end at the right corner of the screen
Like this :
gmvwzeCLB5M62a.jpg
The width is naturally not fixed for .col
Help please, I will be very grateful for any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Ivanov, 2018-08-05
@mishaweb

I would simply divide the section into two parts 50 by 50 and fill in the background image in such color proportions, and in the section itself I would already make a container, and I would fill the columns in the desired colors, since the background of the section will stretch, and each column will have its own colors, then the user won’t notice anything, he didn’t personally check it, so this is just a theory))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question