I
I
Igor2015-09-24 13:23:04
css
Igor, 2015-09-24 13:23:04

How to make the content fixed and the background the full width of the screen?

welovepavel.esy.es/Kivi/HTML.html
https://qiwi.com like theirs.
45R63FL.png
Thanks!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Kravchenko, 2015-09-24
@IgorBee

nest the content block inside the background block, of course

<section>
<div class="content"></div>
</section>

section{
   width: 100%;
  background-color: blue;
}
.content{
  margin: 0 auto;
  width: 1200px;
}

A
Alexey Ukolov, 2015-09-24
@alexey-m-ukolov

Click on qiwi.com F12 and make "kakunih"...

D
Dmitry, 2015-09-24
@ruozaki

Your max-width is 1300, what do you want?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question