Answer the question
In order to leave comments, you need to log in
How to stretch a div to fit the width of the page?
I need to stretch a div with class bg_content to fit the full width of the page. How to do it?
HTML
<div class=info>
<div class="bg_content">
<p>123456789</p>
</div>
</div>
.bg_content {
background: #dedee9;
background: url('/../Images/Map.png');
}
.info {
position: relative;
margin: 0px;
padding: 0px;
max-width: 100%;
min-height: 200%;
max-height: 200%;
overflow: hidden;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question