S
S
smoklew2015-10-08 16:50:56
css
smoklew, 2015-10-08 16:50:56

Why doesn't wrapper spread when specifying float:left?

How do I make sure that when specifying any float:left block, the wrapper extends to this block. So far, it turns out like this: jsfiddle.net/w28nocsk
The last blocks were indicated by float: left; and missing box-shadow from wrapper didn't spread to it...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Inchin ☢, 2015-10-08
@In4in

For example, put another c after the floated block (clear: both; a pseudo- element is also possible).
Anyway, here's the article.

A
andreyqin, 2015-10-08
@andreyqin

Set the wrapperoverflow: hidden;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question