" />
V
V
Vitaly Kirenkov2012-01-31 21:32:46
Google Chrome
Vitaly Kirenkov, 2012-01-31 21:32:46

Bug in chrome using

Hello. Previously, I used zeroing by such a thing -
<див class="clearfix"></див>
- with styles
.clearfix { font-size: 0; line-height: 0; height: 0; clear: both;}

Everything was great. But there is an opinion that using empty blocks on the site is not entirely correct and therefore I decided to try this design:
<бр class="clearfix" />
with styles
.clearfix { clear: both; display: block; height: 0; line-height: 0; overflow: hidden; font-size: 0;}

So everything is as it should be everywhere, but in chrome there is some kind of extra height that I can’t kill in any way ... Maybe someone came across is this the solution?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
H
homm, 2012-01-31
@DeLaVega

Well, what is this clearfix? A real clearfix with no unnecessary elements at all is done:
www.positioniseverything.net/easyclearing.html
Starting with the heading "Putting It Together".

S
Sergey, 2012-01-31
Protko @Fesor

overflow and :after are everything.

E
egorinsk, 2012-01-31
@egorinsk

> So everything is as it should be everywhere, but in chrome there is some kind of extra height that I can’t kill in any way ...
Start with the Metric tab in the inspector and see where it comes from.

V
Vitaly Kirenkov, 2012-01-31
@DeLaVega

Thank you all, I understand. I will do as they wrote above, that is, the second class.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question