View Full Version : colspan / rowspan
gkp.gaurav
December 30th, 2006, 07:24 AM
hi all
first of all happy new year. can any one tell me that using "Colspan" or "Rowspan" tag in HTML is according to web-standards? or i should avoid using these tags?
-gaurav
Sinister Rouge
December 30th, 2006, 07:35 AM
First, this is the wrong section, no real biggie but the devs did take the time to provide us with numerous sections, one being for html.
second, avoid tables all together for design purposes. they are fine for data but CSS should be used for design. On that note, I'm not quite sure what you are asking regarding the tags. Yes you can use them and you can find out more at the W3C (http://www.w3.org/MarkUp/).
gkp.gaurav
December 30th, 2006, 07:38 AM
thanks neil. sorry for submission on wrong section.
Sinister Rouge
December 30th, 2006, 07:47 AM
no problem and no worries.
lorren.biffin
December 31st, 2006, 01:49 AM
Row and Col spans, in my experience, are fine...HOWEVER, be careful. If the rest of your table is set up in a way that conflicts even in the slightest bit, you've got some big visual/structure problems to deal with.
Also, on a side note, I can empathize with wanting to use tables for design...I've been designing since before CSS was very widely used...and let me tell ya, breaking the habit of typing <table> as your first tag after <body> is hard to do, but it is definitely a benefit to get in the habit of using DIV's and CSS to replace tables in your designs. They offer a large amount of flexibility as far as structure and are a lot more forgiving than tables. It does take a bit more of your time, but it's well worth it.
As KDD said, save your tables for data presentation, keep them minimal and NEVER nest more than twice :)
Just my two cents...good luck ;)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.