range columncolspanw...">

Difference between column and column in css

Column join:

<td colspan="4"> 
</td>

range column

<td style="column-span:4"> 
</td>

colspanworks fine. but column-spandoes not work.


I have a little confusion with the full name:

since full name . but different from . colspancolumn spancolumn-spancolspan

  • Please explain the meaning colspanandcolumn-span

  • And tell me the difference.

+4
source share
1 answer

column-span:was designed for print style layouts and is a pure CSS rule. It is used to host CSS columns(not table columns).

colspanthe attribute is used for table elements TDso that they can span multiple columns in the table.

. column-span: . . http://www.w3schools.com/cssref/css3_pr_column-span.asp

+8

Source: https://habr.com/ru/post/1583972/


All Articles