You can think about it in terms of the table element inside html. To answer your question in that sense, yes. Positioning elements with a display: a table in css is more or less a way of forming a tabular display for the correct positioning of an element. This requires less hassle in the path of a floating div and the like. As long as you simply create a display that will correctly position your elements, this is completely normal, you should NOT interfere with the HTML code, although using a table to perform the same tasks that you would use display: table for. The only drawback of using css display: table is that the cell can still be stretched according to the contents contained in it, compared to setting the height and width in a particular div.
user799910
source share