I always used the following entry for cleaning wrap:

selector:after { content: ''; display: block; height: 0; clear: both; } 

But now I often meet this option:

 selector:after { content: ''; display: table; clear: both; } 

I want to ask, what is the difference between the logic of the first and second methods? What are the advantages, disadvantages? Why display: table ;?

    1 answer 1

    Absolutely no difference. Matter of habit. Both work the same way - both clear the stream