Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use rowspan attribute in <style> tag

Tags:

html

css

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

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

Is there anyway to do that, or anything to solve that ? Thank for any suggestions !

like image 759
Rong Nguyen Avatar asked May 30 '13 08:05

Rong Nguyen


1 Answers

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

You will not be able to set the rowspan attribute via CSS, this would be similar to attempting to set the href of an a tag via CSS.

like image 153
Kevin Bowersox Avatar answered Oct 06 '22 00:10

Kevin Bowersox