I have a table with 30 odd rows each with two columns. Each cell has text in of different lengths. Since there are only two columns, it seems there must be a better way of tabulating the data without using table. BUT HOW? I thought it would be easy, but I can't seem to get anything to work :-(
( Well, nothing that is easier anyway! )Well if its tablular data there is no reason to find alternatives as hence tables were created to display tabular data. But if its for layout use a div.Well, that explained a lot.
This is a borderline case. The formatting is simple, and yet, I can't quite see a way to do it. I was asking whether the only way was using a table, or whether indeed there is a way without a table that I haven't yet come accross in any book. The objection to using a table is that in this case the formatting requirement is so simple it hardly seems worthy of a table....but if there is no other way.HTML elements are not about "which one will allow me the easiest formating" but "which one suits the semantics of content the best".
If yours is truly a 2D data, then <table> element is appropriate; if the first column is a heading/title for the second column, <dl> could be the correct choice.I am not into "easiest", the table is easiest. I was just curious if there was an alternative.
No, the <dl> is not appropriate, so I guess the answer is it must be a table.
I am slightly amazed. As I said, the requirement is very simple, so much so that it seems almost too simple to necessitate a table - but there you go. A table it will be.
My psi powers are having a nice weekend. How about showing us the content you are trying to present...
( Well, nothing that is easier anyway! )Well if its tablular data there is no reason to find alternatives as hence tables were created to display tabular data. But if its for layout use a div.Well, that explained a lot.
This is a borderline case. The formatting is simple, and yet, I can't quite see a way to do it. I was asking whether the only way was using a table, or whether indeed there is a way without a table that I haven't yet come accross in any book. The objection to using a table is that in this case the formatting requirement is so simple it hardly seems worthy of a table....but if there is no other way.HTML elements are not about "which one will allow me the easiest formating" but "which one suits the semantics of content the best".
If yours is truly a 2D data, then <table> element is appropriate; if the first column is a heading/title for the second column, <dl> could be the correct choice.I am not into "easiest", the table is easiest. I was just curious if there was an alternative.
No, the <dl> is not appropriate, so I guess the answer is it must be a table.
I am slightly amazed. As I said, the requirement is very simple, so much so that it seems almost too simple to necessitate a table - but there you go. A table it will be.
My psi powers are having a nice weekend. How about showing us the content you are trying to present...