News for hackers. Stuff that matters.
Re:Blink tag removed from Firefox by nnash on Tuesday August 06, 2013 @11:55PM (#6170731)
<table> wasn't actually abused; it just happened to be the best way to do things until CSS 2.1 was rolled out.
Re:Blink tag removed from Firefox by statictype on Wednesday August 07, 2013 @12:04AM (#6170759)
There are still use-cases where using <table> is the cleanest way to achieve something without resorting to javascript (or a <div> soup tag).
Re:Blink tag removed from Firefox by proexploit on Wednesday August 07, 2013 @01:04AM (#6170960)
Like what? I buy the use case of using a table for data, but are you implying there's other scenarios where using table elements are the best choice?
Re:Blink tag removed from Firefox by dandelany on Wednesday August 07, 2013 @02:35AM (#6171214)
Here's an example, for one:

http://css-tricks.com/centering-in-the-unknown/

(talks about a CSS/divs solution, but as it mentions there are differences between the two). In general if you're dealing with a design that involves centering something with a dynamic size vertically, or one which involves having the height or width of two dynamic elements add up to the width of a third adjacent element (ie. "rowspan" and "colspan" in table-speak), there's a decent possibility that using a table might just be the least-hacky way to implement something. Bearing in mind that hackiness is a bit subjective :)

Re:Blink tag removed from Firefox by proexploit on Wednesday August 07, 2013 @03:13PM (#6174951)
Yeah certainly, thanks for the examples. I think the first item you mentioned, vertical centering of a single dynamic object actually can be handled better than tables currently (see some techniques here: http://html5hub.com/centering-all-the-directions/) but when you add more elements into the mix I can see how rowspan / colspan equivalents are not easily implemented without JS.
Re:Blink tag removed from Firefox by statictype on Wednesday August 07, 2013 @03:15AM (#6171317)
A main content area and a sidebar with each having different colors and both maintaining the same height such that they expand vertically with the content (without having to hard-code pixel values).

I saw a page showing how it could be achieved using only divs, but really, it was a complete rube goldberg machine, the sole purpose of which, seems to be to adhere to the religion of not using tables.

I get that table layouts have their own issues but I think its silly to be dogmatic about refusing to use them where it's clearly the best hammer to drive in that nail.

Re:Blink tag removed from Firefox by skeletonjelly on Wednesday August 07, 2013 @04:45AM (#6171590)
Vertically centering floating content is a PITA without this dirty, dirty hack :)
Re:Blink tag removed from Firefox by jlawer on Wednesday August 07, 2013 @01:36AM (#6171067)
Email for one.
Re:Blink tag removed from Firefox by proexploit on Wednesday August 07, 2013 @03:14PM (#6174967)
I get it but I feel that's more of an imposed limitation by email clients and not a fair choice.