Use rowspan attribute in <style> tag

I would like to use rowspan (html attribute) in <style> , for example:

  <style> table td{ rowspan: 2; } </style> 

Is there a way to do this, or anything to solve this? Thanks for any suggestions!

+6
source share
1 answer

rowspan is an attribute of the td tag, it is not a CSS property. See Specification: http://www.w3.org/TR/html401/struct/tables.html#h-11.2.6

You cannot set the rowspan attribute through CSS, it will be like trying to set the href tag of a tag a through CSS.

+15
source

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


All Articles