Why using display table for vertical align is bad practice

匆匆过客 提交于 2019-12-13 03:37:54

问题


I have read a lot of different articles about available methods for vertical centering using CSS.
I understand how everything works, but I have found a lot of phrases like layout using tables is considered bad practice ?

I found that using display : table is supported by most of the old browsers, even mobile browsers like Opera Mini for antique phones.

Please explain why is it considered bad practice to use divs with display : table and what is the most well-supported way to align vertically than.

Thx.

来源:https://stackoverflow.com/questions/38619180/why-using-display-table-for-vertical-align-is-bad-practice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!