Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there any best way to control the layout of a html table?

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

Can someone advice me about the possible better way to make html tables, knowing that the number of rows and columns are aleatory?

Depending of my xml tree I will have to create some tables, and in each table I can say I will have different subsets of data, in other words, I will have diferent number of rows and columns.

For instance, I was trying to construct my table as a string... so I will first read my data and, depending of what was read, I would create diferent tables (inside the main one) to each subset of data. To do that I was creating a table inside a row of the main table. The problem is that, if I put borders, the table would be ugly!

So, I´m thinking on using diferent body sections to put the diferent subset of data( I say subset, because in fact, the structure of the table becames diferent...)

I think I would be able to use colspan and rowspan, however I think this might be dificult to contro it...

I never used tables before... so I would apreciate an advice to do such table...

Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top