L
L
lue merg2015-10-05 18:16:24
css
lue merg, 2015-10-05 18:16:24

The background floor disappears at float left why?

when I write float left the background floor disappears
a463b7b209e14cc49c262006209d7a32.png

<div class="footer-block footer-info">
  <div class="block-inner">
  </div>
</div>

footer {
    background: #262626;
    padding:50px 0px;
    color: #777;
    font-size: 18px;
}

.footer-block {
    width:33%;
    float:left;
}

.block-inner {
    padding:0px 15px;
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zjoin, 2015-10-05
@luemerg

Did not clear the parent container
habrahabr.ru/post/48383

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question