Answer the question
In order to leave comments, you need to log in
How to make a div width full screen?
welovepavel.esy.es/Kivi/HTML.htmlwidth:100%;
somehow it doesn't work like that,
you need the blue background to stretch to the entire width of the screen, and the content to be fixed as it is now.
09/23/15 15:30
jsfiddle.net/x28fLrpn
it is important that the content is centered...not blurry...
Thank you!
Answer the question
In order to leave comments, you need to log in
<section>
<div class="container">
Контент
</div>
</section>
section {
background-color:blue;
} /* Синий фон на всю ширину */
.container {
margin: 0 auto;
max-width: 980px;
} /* Фиксированный контейнер с контентом */
body
You have position:absolute. With this parameter, the div is minimized. The only simple and normal way is through JS or jQuery to determine the width of the window and apply min-width
PS: Vyacheslav correctly noted. remove max-width.
.hea {
position: absolute;
width: 100%;
left: 0px;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question