S
S
Sergey Minakov2017-01-22 10:43:20
css
Sergey Minakov, 2017-01-22 10:43:20

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>

css
.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

1 answer(s)
I
iBird Rose, 2017-01-22
@iiiBird

set for .info {width: 100%;}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question