/    Sign up×
Community /Pin to ProfileBookmark

How to tabulate without tables?

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! )

to post a comment
CSS

5 Comments(s) ↴

Copy linkTweet thisAlerts:
@johndoe190Aug 21.2004 β€”Β 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.
Copy linkTweet thisAlerts:
@SuzanneBauthorAug 21.2004 β€”Β 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.
Copy linkTweet thisAlerts:
@VladdyAug 21.2004 β€”Β 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.
Copy linkTweet thisAlerts:
@SuzanneBauthorAug 21.2004 β€”Β 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.

?
Copy linkTweet thisAlerts:
@VladdyAug 21.2004 β€”Β My psi powers are having a nice weekend. How about showing us the content you are trying to present... :rolleyes:
Γ—

Success!

Help @SuzanneB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 β€” BETA 5.6,
whats_new: community page,
up_next: more Davinciβ€’003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinciβ€’003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...