Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between colspan and column-span in css

colspan:

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

column-span

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

The colspan does working properly. but column-span does not working.


I have little bit confusion with the full name :

because colspan full name is column span. but column-span is different from colspan.

  • Please explain the meaning of colspan and column-span

  • And tell me the difference.

like image 936
Ramesh Rajendran Avatar asked Feb 10 '23 09:02

Ramesh Rajendran


1 Answers

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

colspan the attribute is used for table TD elements to get them to span multiple columns in the table.

Note: Browser support for column-span: is poor. Avoid using it. http://www.w3schools.com/cssref/css3_pr_column-span.asp

like image 173
Gone Coding Avatar answered Feb 12 '23 23:02

Gone Coding