3 ms·
Very interesting, I never saw that before! But I can't figure out, for the life of me, why the bizarre ".container:before" declaration is needed -- it would se
by gmjoe 13y ago
Very interesting, I never saw that before!
But I can't figure out, for the life of me, why the bizarre ".container:before" declaration is needed -- it would seem to be entirely superfluous, but if you remove it, the whole thing breaks. Can you explain what's going on?
- ggurgone 13y agoHere is a visual explaination: http://dabblet.com/gist/7359467 http://dabblet.com/gist/7359467 The pseudo-element (in red) is 100% tall and both .container:before and content are inline-block with vertical-align: middle;