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 ;?