5

Is there a way I can change colspan of td using CSS or this needs to be done only in html?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
ssri
  • 1,290
  • 4
  • 15
  • 23

2 Answers2

6

It's an HTML only property:

<td colspan="2">

There is no CSS equivalent of this (as far as I know.)

Kyle
  • 65,599
  • 28
  • 144
  • 152
1

I doubt that this is possible.

colspan relates to the structure of the document - so it is handled by the HTML/XML.

css only handles things that are to do with the presentation of the document.

Have you considered using XSL/XSLT on the XML? They might be more useful.

Rudrik
  • 832
  • 7
  • 8
  • 1
    http://www.w3.org/TR/css3-multicol/ may be this link will help you to solve this problem. – Rudrik Mar 08 '11 at 09:17