I have done extensive work with Section 508. Layout tables present no accessibility problems if used correctly (don’t use THs if it is just a layout table, and for goodness sakes do not give the table a caption or summary at all if it just a layout table). I really am baffled by the modern web design communities demonization of layout tables.
It’s just a tool guys. If it works across the browsers you need it to, if it functions as intended and presents no accessibility problems, by all means use it. Using layout tables intermingled with layout DIVs can be a great best of both world approaches to get your site done fast.
If it works use it.
]]>Maybe someelse already told you but can I suggest a little change in your javascript code for the “simple search” in table. In order to select the rows under the header you use
var rows = $('table tr:gt(0)');
I suggest to use
var rows = $('tbody tr');
I had a problem when I used your code with a two rows header.
Many thanks Paul, exactly what I need.
]]>Hi Tony
Have a look at the following jsFiddle: http://jsfiddle.net/SBp3K/
Paul
]]>I wonder if you or anyone can help me with a table problem – I want to have a 2 column table with several rows but the only border I want in the right hand side of column 1. The effect would be a vertical line between the two columns.
Any help greatly appreciated.
]]>I see you mention tablesorter and link to an article giving many more such resources, including the very comprehensive datatables.net. Some might want to investigate jtable which I’ve found good (I note most jtable functionality is available without further plugins).
Thanks again for a great article.
]]>Noticed repeating ids in one of the filtering examples and instead of internet-commenting about it, thought I’d fix it on codepen and share it. http://codepen.io/anon/pen/BysKz if you’d like to update it.
Thanks again!
]]>Good article on how versatile you can be with CSS and making tables pretty.
]]>I have a main div containing 2 tables, both have to have variable width, the only thing I know is the left hand side table could come with 2, 3, 4, 5 or 6 columns, but have to have a max width of 39% (in the case is coming with 6 columns)
The right hand side table has to adapt the remaining space from the left hand table, and the max width this table would have (imaging that the left hand side table has only 2 columns) is 83% more or less.
Do you have any ideas how to adapt both in the same div without jumping next line and make both adapting to the 100% div space?
Thanks in advance, Marian.
]]>Agreed also!
Excellent article and I’m saving this as a reference for future work.
Thanks so much!
I have a question, how you would make the table to have behaviors such as the DataGrid in Flex? I mean to be able to drag the borders of the columns to change their width (like in a spreadsheet as well).
]]>Currently i wrote code and css on a:focus which is working fine except web kit browser like crome & safari.
Do we have any other alternative to implement this?
]]>