CSS-Based Tables: Modern Solutions

Advertisement

We continue to present some of the best CSS-techniques which web-developers can always use working on their current web-project. Recently we’ve taken a look at the best css-based forms, today we present some useful techniques for displaying information in a tabular mode. In fact, tables can present data quite efficiently, particularly if you can use some sorting or filtering functions in order to improve the legibility of the text stored in the table. Furthermore, Zebra tables are becoming more and more popular, and the techniqies supposed to enhance their functionality appear on a weekly basis.

So what do we have? Let’s take a look around: over 28 modern css-based techniques in a brief overview. Links checked: May/27 2008.

Zebra Tables

Screenshot

Redesigning a simple table

Screenshot

Zebra Tables

Screenshot

Better Zebra Tables

Screenshot

Splintered striper: Enhanced Zebra Stripes

Screenshot

Standardista Table Sorting (A client-side JavaScript Table Sort module)

Screenshot

Designing Tables with Stylesheets

Screenshot

SortedTable instructions and examples

Screenshot

A CSS Styled Table by Veerle Pieters.

Screenshot

24ways: Tables with style

Screenshot

Sinnhafte Websites

Screenshot

Data Tables and Cascading Style Sheets Gallery – 78 CSS Table Designs.

Screenshot

Zebra Table Showdown featuring Plain DOM Scripting, Yahoo UI, Dojo, Prototype, Mochikit, mootlos, jQuery, AJS. – design67

Screenshot

Stripe your tables the OO way

Screenshot

Unobtrusive Table Sort Script (Revisited)

Screenshot

Brainjar.com: DHTML Table Sort

Screenshot

Table sorting JavaScript: Unobtrusive and with alternating row colors

Tables with further functionalities (i.e. sorting, filtering)

Screenshot

Replicating a tree table

Screenshot

Reformat the Table and Reformat the Table 2

Screenshot

Table not a table

Screenshot

CSS Style Tables Tutorial

Screenshot

How to create and style accessible tables – design56

Screenshot

Sort Table Rows with Javascript

Screenshot

The Table Ruler

Screenshot

sorttable: Make all your tables sortable

Screenshot

Sortable Tables (WebFX)

Screenshot

Sort’n'scroll Table

Screenshot

Unobtrusive Table Sort Script

Screenshot

Dynamic Sorting of HTML-tables via XSLT

Screenshot

Accessible Data Tables

Tools

  • Data Generator lets you generate large volumes of random, custom data (for testing purposes only).

Links and references

Books

↑ Back to top

Vitaly Friedman loves beautiful content and doesn’t like to give in easily. Vitaly is writer, speaker, author and editor-in-chief of Smashing Magazine. He runs responsive Web design workshops and loves solving complex problems in large companies. Get in touch.

  1. 1

    This is a useful list – thanks for collecting these examples together.

    However, many of the examples are more about using JavaScript to add functionality to tables (sort, filter, etc) rather than about using CSS to style them.

    It might be more helpful to further categorize this list in order to make it more useful to people. For example, what are the special features of each example that make for its inclusion in the list?

    As a designer, I’d rather have fewer examples with more information for each. Just my 2c.

    0
  2. 2

    cool examples, I actually remember blogging about the forms one you did a while back – so I’ve mentioned your latest (this tables) one now as well

    0
  3. 3

    There is a CSS Tables Gallery out there: http://icant.co.uk/csstablegallery/

    Has a list of styles you can use for your tables.

    0
  4. 4

    Hey,

    Good site and good list. Not to spam your comments or anything, but I build a script combining the zebra striping (from Jop De Klein/David F. Miller) and the sort functionality (from kryogenix.org) with a few of my own additions (disabling rows) and allowing the tables to be submitted. Definitely useful in web apps if you don’t have a full library like the YUI. It all degrades perfectly so the form will always work too. If you enjoy it and feel like adding it to your list, go for it.

    0
  5. 5

    Really a great job, as ususal. I find your lists always very precious and inspiring. Keep going like this.
    By the way, happy new year.
    Guy

    0
  6. 6

    The Standardista Table Sorting (A client-side JavaScript Table Sort module) page LOCKS UP my Firefox 1.5.0.9 on Mac OS X. A pretty annoying effect.

    Nice list, otherwise.

    0
  7. 7

    How stupid is that? Using CSS tables is like using tables for layout. It’s all about semantics…

    was created for tabular data, so why not use it that way

    -2
  8. 8

    nice collection, I’ve added your link on my site.

    0
  9. 9

    WOW this is a great list, great resource… I like the 6th most… thanks for sharing :)

    0
  10. 10

    This is a great article, very well laid out and very informative, thanks alot.

    0
  11. 11

    Thanks for taking the time to post this. It’s amazing how much difference a little colour makes to something as simple as a table.

    0
  12. 12

    You help me, thanks great table examples.

    0
  13. 13

    This is really a nice collection. I did searched for CSS tables but I was shown all useless results but I was knowing that smashing magazine does have nice resources on this kind of stuff. Landed here and Dang found it the exact thing I was looking for.

    Thanks a lot for the reference links.

    0
  14. 14

    Thanks for posting this, it’s amazing how much difference a couple of simple colours can make to a table

    0
  15. 15

    very helpful post.

    i already made this trick in use in my new free template for phpLD script when i made another tableless template :)

    0
  16. 16

    Our whole site is CSS based and I found your insight into CSS tables (and CSS in general),both interesting and useful. Thanks Vitaly and Sven.

    0
  17. 17

    Merci, ce sont des excellents examples.

    0
  18. 18

    add wrote: “How stupid is that? Using CSS tables is like using tables for layout. It’s all about semantics…
    was created for tabular data, so why not use it that way

    Less stupid than you. The examples presented clearly contain tabular data… or were your eyes closed when your looked at this page?

    0
  19. 19

    thank you great article great table designs.

    0
  20. 20

    Really a great job,I like it! and thanks for your sharing.

    0
  21. 21

    thanks for you great job

    0
  22. 22

    I’ve tried one of that on my site. Thanks

    0
  23. 23

    very good this post, following a link to learn more ( book css )

    0
  24. 24

    Can I humbly submit my own animated and REGEXP-friendly table sorter to this page?

    http://mitya.co.uk/scripts/Animated-table-sort-REGEXP-friendly-111

    Thanks

    1
  25. 25

    Whats with all the Canadian bands?

    0

↑ Back to top