M
M
Martyer2016-02-05 01:20:15
css
Martyer, 2016-02-05 01:20:15

Are there any disadvantages to tabular layout through css?

Hello everyone.) I'm new to layout, and not so long ago I saw an example where a rather complex layout was laid out using only display: table and display: table-row . I am very interested in this method.
On the plus side, I found that

  • all blocks are stretched
  • footer is always pressed
  • easy to align any cell content

Does anyone know the cons?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim E, 2016-02-05
@Martyer

The disadvantages are the same as with tabular layout, in fact you DIVs into a table and remake.
There are many discussions about this here.
Comparisons with a brief description of display values ​​are on this page .
The element is shown as a block element. Applying this value to inline elements, such as the tag <span>, causes it to behave like blocks—it wraps lines at the beginning and end of the content.
Specifies that the element is a block table, similar to using the tag <table>.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question