1,280 reputation
21017
bio website drowtales.com
location Latvia
age 30
visits member for 4 years, 5 months
seen Apr 8 at 15:43

Just your average everyday programmer.


Apr
6
comment Why are people making tables with divs?
@NotMe - True, but the differences will probably be noticeable only in some esoteric edge cases. I don't even know what to look for.
Apr
3
comment Why are people making tables with divs?
I'm accepting this answer because it seems that nothing else useful is coming in anymore. There are higher-voted answers but they basically say "because semantics" (and the only reason for semantics that they can provide is screen readers, which doesn't convince me). @HorusKol's answer mentioned responsiveness before yours, but yours is more to the point. If a better answer appears in the future, I will change that to be the accepted one.
Apr
3
accepted Why are people making tables with divs?
Apr
3
comment Why are people making tables with divs?
@Sildoreth - the extra markup is minimal and IMHO actually clarifies what is going on. As for the highest semantic value - why?
Apr
3
awarded  Famous Question
Apr
3
comment Why are people making tables with divs?
Wait, so there are different doctypes that make the same document render differently? Which ones? Mind you I'm talking about different doctypes, not doctype vs lack of doctype (aka quirksmode).
Apr
2
awarded  Favorite Question
Apr
2
awarded  Great Question
Apr
1
comment Why are people making tables with divs?
Offtopic about the DOCTYPE: I thought that, although there was a theoretical difference (and validators did take it seriously), in practice browsers didn't really differentiate between them. OK, maybe there were some minor changes between HTML/XHTML flavors, but the version and DTD information at least was not used. Which is why HTML5 dropped the whole thing anyway and went with just <!DOCTYPE html> and which is why it happens to work even in old browsers like IE6. Have I missed something?
Apr
1
comment Why are people making tables with divs?
Yes, responsiveness is one reason.
Apr
1
comment Why are people making tables with divs?
@PaulD.Waite - It's actually still true today, I think. Read the other answers. Unless the table has table-layout:fixed, it will need to load entirely before it can be displayed. With modern broadband this effect is simply less noticeable.
Mar
31
awarded  Mortarboard
Mar
31
awarded  Notable Question
Mar
31
awarded  Yearling
Mar
31
awarded  Popular Question
Mar
31
awarded  Good Question
Mar
30
comment Why are people making tables with divs?
Well, OK, that was stretching it a bit. :) Well, you've given me something to think about! Thank you for that! I'm still not 100% convinced, but at least it's something to go on with. :)
Mar
30
comment Why are people making tables with divs?
Hmm... well, in your case you actually do two different representations of the same HTML via media queries. OK, that's a good use-case. But if this wasn't the case, and you'd know beforehand that this thumbnail gallery will be only displayed in one place and only in tabular format - would you use a <table> then or still display:table? Because, well, in a way it is tabular data. Except that the "data" is pictures, but still.
Mar
30
revised Why are people making tables with divs?
added 121 characters in body
Mar
30
comment Why are people making tables with divs?
The class names were actually just an example. In real life they mostly are properly descriptive. Anyways, in your example, why do you use <div> instead of <table>? What benefits does it offer?