Jump to content

Limitations To Span Attribute Of Colgroup And Col


Guest superguppie

Recommended Posts

Guest superguppie

Recently I was working on a page that reports work done and needed on projects. For one project I ended up with a very wide table.In this table, I had used colgroup and col to shade the current week. This worked fine for all projects, except that very large one.When looking into it, I found the following:http://www.w3schools.com/tags/tag_col.asp states Firefox only supports the width attribute. The page I made uses the span and class attributes. They show ok on FireFox v3.0.1. I have not tried other attributes (yet.)http://www.w3schools.com/tags/tag_col.asphttp://www.w3schools.com/tags/tag_colgroup.aspAlthough there is no limitation defined for the span attribute that I know of, I found several browsers do have one. I have not done extensive testing. I just tried some values for large tables. The results are:IE8: maxmimum span=1000. Values beyond 1000 will result in span=1. See http://msdn.microsoft.com/en-us/library/ms535227(VS.85).aspx.Opera v10.10: maximum span=1000. Values beyond 1000 wil result in span=1.FireFox v3.0.1: maximum span=1000. Values beyond 1000 will result in span=1000.Safari v4.0.4: no limit found.Chrome v3.0.195.38: no limit found.For all browsers, having several colgroups or cols with span=1000 will result in tables that are rendered well. So splitting up the groups for such extremely large tables works ok.I have mailed this to the w3schools, and figured I'd post it here for people to find it until they had a chance to update the pages.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...