Search code examples
htmlcsscss-tables

Why use floats instead of css property table


I have started using the"display:table" property in CSS to properly structure my html5 elements, and it works great.

Can someone tell my why using floats is better? Ironically, it seems like this is the future? It's easy, simple and understandable?


Solution

  • As long as a table layout works for you, you can use it.

    However, it would be a good idea to make yourself familiar with other ways to control the layout. As soon as you want to do something that doesn't fit in the strict grid that a table forces upon you, you need to use something completely different.