I have the background of the entire site in the form of a picture, everything is fine with it. And also I have the CSS value for the central part: background-color: white . How can I make this white color stretched to the bottom of the page?

In general, I want to do as here .

Closed due to the fact that the essence of the issue is not clear by the participants user194374, aleksandr barakin , Denis , Mr. Black , cheops Jul 24 '16 at 8:00 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • What exactly is not clear how to stretch the block with white color? Is there an attempt code? - slippyk
  • Yes, the block with white color. Isn't it done in css? - Andrew Tarasevich
  • 2
    add html markup example, where it is impossible to stretch a block. - slippyk
  • on each page for the div-content block I need to stretch - Andrew Tarasevich
  • div-content - as far as I understand the block in the middle of the site, give it background: #fff; and that's it .... it will be pulled depending on the content in it .... if you want it to be on the whole page, write him a height of 100%, your question is not clear, so we ask the code in the studio ... - Igor Kalinchuk

1 answer 1

Give your block with a white background the minimum height of the browser window: min-height: 100vh;