CSS Table Gallery

Following a request on the list, where a subscriber had unsuccessfully searched for an online gallery of styled data tables, I came up with the following idea:

http://icant.co.uk/csstablegallery/

It is pretty much like csszengarden, only for a single marked up data table.

What I need now is people participating with an own style for the data table. You can submit it directly on the site and I will check through them when I come back from a training in 3 days, so please don’t expect to see things appearing immediately.

74 Responses to “CSS Table Gallery”

  1. supermind.org - Lucene Nutch consulting » Data Tables and Cascading Style Sheets Gallery Says:

    [...] ark — Kelvin Wed 13 Sep 2006 5:45 am http://icant.co.uk/csstablegallery/ (Via CSS Table Gallery – Wait till I come! ) permalink | trackback u [...]

  2. Thierry Koblentz Says:

    Interesting idea…
    I know that the content of this table does not require Header abbreviations, but I think it would be interesting to include the abbr attribute in there to create an extra hook.

  3. Burhan Says:

    Hey Chris, great idea, and I didn’t wan’t to reply on the list, but could you perhaps have a section for some ’specific’ tables?

    One such would be a calendar display, I always find myself stuck when trying to find a pleasant way to style a calendar.

  4. Rob Lewis Says:

    Great idea – the poor table has taken quite a battering over the past couple of years, so it deserves a makeover!

  5. Fatalis Erratum Says:

    I’d put one together too, but it appears you can’t simply submit the code, you need to host a CSS file somewhere. What gives?

  6. Chris Says:

    Fatalis: It gives over 35000 hits on the second day, if I were also to host the CSS files I’d be a poor man. CSSZenGarden doesn’t host the files either, does it?

  7. JasonMR Says:

    I had the following ideas for changes to the table mark-up, that I would like to put up for discussion:

    - class=”odd” for td and th tags
    -> This would allow for styling of columns

    - class=”columnX/rowY”
    -> This would allow to hightlight columns/rows

    - class=”selected” for row of style shown
    -> To seperatly highlight the displayed style.

  8. Chris Says:

    Jason,

    yes, that would be nice to have, however, the idea of this gallery is to show what can be done with a normal data table. In the business world of CMS driven web sites we hardly ever have the option to control the markup down to this level.

  9. Richard Grevers Says:

    One thing many of my real-world tables do have is a set of <colgroup><col></col></colgroup> elements. Although you can only hang a limited subset of styles on them they are useful.

    Edit: Please use the code tag to mark up code, I had to fix this /Chris

  10. P Kanth Says:

    Great idea Chris, In fact I had the same thoughts a couple of days back, Tables are useful for tabular data no doubt about it, surely the lack of resources makes the job of styling complex tables even more difficult.
    There should be more examples to tackle complex real world scenarios. Even after years I sill keep looking for ideas on styling and using tables in effective ways for tabular data.

    Sadly there are not enough resources, other than W3C on the technical front which is a great resource to understand how tables work and few others. There are not many places that show the use of tables in different ways.

    I would like to thank you for stating this site, and I hope it will grow to become a great resource.

    It would be nice if there is an option to show some different layouts in tables, not just styling one table but different kinds of table layouts. Merged columns may be rows grouping different tables, hover styles, scrollable body data with fixed headers and so on.

    May be articles, tutorials, links, a one stop resource on tables. That would be awesome.

  11. kit Says:

    Actually, css zen garden does host the final versions:

    Once you have completed your masterpiece (and please, don’t submit half-finished work) upload your .css file to a web server under your control. Send us a link to the file and if we choose to use it, we will spider the associated images. Final submissions will be placed on our server.

  12. Marko Petkovic Says:

    I think Gray suits you sir is fascinating. To be honest I am avoiding using tables but this is so good!

  13. Chris Says:

    Marko, if the data you want to display is tabular data, then there shouldn’t be any ony solution but to use a table. Only a well marked up table makes this data accessible.
    Check my Data Tables and CSS article on devarticles.com for more information.

  14. Mauricio Says:

    Inspired by JasonMR comment above, I’ve played whith CSS code in order to achieve different colors for the columns.
    And, once again I discover the power of the adjacent-sibling seletors (unfortunate IE again doesn’t support).
    You can see the results of my work on this page.

  15. Chris Says:

    I have played with that aswell, however what I dislike about it is that you have to know the amount of cells and the HTML structure quite closely, which doesn’t make it very versatile :-/

  16. Mauricio Says:

    Thanks Chris. Yes that is the point. But I’d like to know, please: Am’I missing something? Because I’m thinking that the use of adjacent-sibling selectors requires a closely look at the HTML structure, not only for tables but in any kind of code. It seems to me that you point out that this solution isn’t useful for CMS. Is this?

  17. Aristotle Pagaltzis Says:

    Here’s a little request: could you repeat the description of the submission at the top? Currently, it only says “Current style: Foo Bar by Baz Quux.” It would be nice not to have to go looking for the description in the table when you open a bunch of styles in tabs.

  18. Chris Says:

    @Mauricio: Yes, that is true. Any CSS technique that requires you to control or know the HTML is quite hard to use in a CMS environment.

    @Aristotle: Excellent idea, implemented.

  19. C Montoya Says:

    Very cool site! Wish I had thought of it :-)

  20. Shane Shepherd Says:

    Great designs! Great idea too! My favorite so far is Dan Champion’s “Muted”…very nice…subtle…beautiful.

  21. C Montoya Says:

    Chris, if it wasn’t too hard to put the description at the top, then you might as well put the download link at the top, too. That way if you like the design you are currently viewing, you don’t have to dig down into the table again to find the download link.

    Thanks for including my design!

  22. Grant Palin Says:

    What a good idea…I was actually thinking of doing something like this, experimenting with different table designs, and showcasing them on my site, but you beat me to it! Oh well, it’s good anyway!

    I found the page shortly after it was published last week; it’s amazing how many designs have come in since then!

    I believe tables are correct for doing tabular data, and try to use them correctly, with accessibility features and such. But this is a good way to demonstrate that tables don’t have to be boring!

  23. Stuart Coville Says:

    @ Marko Petkovic – Thanks for the compliments!

    As this gallery grows it’s going to be very useful.

  24. Vitaly Friedman Says:

    Great idea, Chris! Everybody will benefit from this project.

  25. Usayd Says:

    Very very useful and great work

  26. BrAWo Says:

    How about css FORM gallery?

  27. Chris Says:

    Brawo, as Roger Johannson proved, it is almost impossible to style forms cross-browser:

    Personally I dislike styled forms. Form controls are part of the operating system / browser and if you keep them as the user wants or needs them you won’t have to explain where your form controls are.

  28. Miguel Says:

    Chris,

    How about adding a column where people can rate each design?

  29. Peter Uchytil Says:

    Just wanted to say thanks for this resource. I needed to throw together a table for a live reporting internal app. It’s something that will only live for a few weeks so I didn’t want to spend forever on the design, but I wanted something that would help aid in the viewing of the info. This project was perfect for it! I found a design I liked, downloaded and dropped in the CSS and only had to do minor tweaks. HUGE time saver. Thanks!

  30. juanma Says:

    It was a very good idea for offert at all the webmasters a table style free and easy for change for his css. It idea is great!!

  31. DeCo Says:

    Layout bug in
    http://icant.co.uk/csstablegallery/index.php?css=20

  32. PF Says:

    I’m looking for a table design for a calendar display (or is there a better CSS way to do that?). I didn’t see one in the list and I know I could modify existing but if it’s already been done…

    Thanks.

  33. Arne Kuilman Says:

    Cool stuff, but I messed up already. How can I change the widths of the colums. I have tried adding an id, but alas no luck.

    column

    and

    table #om {width:120px;} in the CSS file

  34. Steve Moore Says:

    I’ve used this as guide to creating a Heading Style Gallery for styling of simple heading elements. Site allows for visitor submission of CSS code and background images. See at http://steveeray.com/headinggallery/

  35. Viktor Says:

    Its very hard to design a good looking large list and at the same time keep the content clear. Great inspiration source!

  36. Cleiton Francisco Says:

    I’m the author of the style “Like Adwords”. I only want to correct the URL. The correct URL is http://www.cleiton.net/

  37. Hernán Says:

    It´s cool, I already sent my design. Thanks!

  38. Robert Hartl Says:

    Thanks a lot. Normally almost everybody says tables are out, only css is king. I’m just working on my css-redesign and like using one table. Your showcase is perfect for me.

  39. patreesha Says:

    Just want to make sure I’m not retarded — Most of the hover features do NOT work in IE, correct? It works fine for me in Firefox, but doesn’t in IE (version 6). Or is it just me?

    Thanks! I think the table gallery is absolutely brilliant!

  40. Robin Smidsrød Says:

    How about adding buttons to previous and next style above the table? Now it’s kinda hard to keep track of where you are when you have to scroll up and down all the time and keep note of what is the current style you’re looking at.

  41. Gavin S Says:

    Could you use script to switch out the css file so that when a link is clicked it does not retunr to the top and you can better keep track of where you are in the list? Or the next/prev buttons mentioned already, placed at the top in a way that they did not move from page to page would prevent the need to scroll.

  42. Chris Says:

    Added the anchors now. I am still stunned by the amount of hits…

  43. Spinnerdog Says:

    Outstanding!! This is a great resource.

    Having a next table button to incirment throught the table designs would be helpful though.

  44. Matt Raible Says:

    Is it possible to get the list of stylesheets in a valid XML document? I’d like to parse it and display the options in a

  45. Chris Heilmann Says:

    It certainly is, but why do you want to have that data? I have traffic enough as it is and no benefit from it.

    Where and why do you want to display all styles in a select?

    You can have the latest ones as RSS and turn that into a select if you want to.

  46. Alex Says:

    Hi Chris,
    check your RSS-Feed. It does not work. The Endtag ‘channel’ does not match the starttag ‘item’.

    ——-^

  47. Alex_Irving Says:

    Thanks Chris for the effort. VERY helpful resource. I punched in on ‘Feed the Host’ as a more practical way of also saying thanks also.

    Alex I.

  48. Bruce Lill Says:

    how about a column indicating the browser needed. There are a couple that look good in Firefox but are missing graphics and features under IE.

  49. Dale Says:

    My apology up front for a stupid question, but besides the CSS, what else do I need to try these tables?

    Dale

  50. Stripeman Says:

    Id love to see this whole collection downloadable….in one file
    I would love to be able to make an offline copy… is this possible ?

  51. Stan Grabowski Says:

    This is a great idea. I always run into problem formatting tables with my CSS. This will give me a great resource for fixing my problems. Thanks a bunch!

  52. tech Says:

    absolutly
    great site source for webmasters :)
    thanks for everything !!!

  53. Thierry Koblentz Says:

    Hi Chris,
    What about adding COL elements (with IDs) to the markup? To give us hooks for the columns?

  54. Hostimal Says:

    Great thing if you need variation of colors.

  55. web tasarım Says:

    Thanks for helpful information you catch up us with your instructional explenation.

    What people do is more important that what they say…

    Best regards

  56. MArek Says:

    Great idea but it could use some facility for voting for the best site

  57. John Davey Says:

    My CSS workshop has been covering table styling. This page is a very good resource, and I will blog it on our site.

  58. Janie Hadsel Says:

    I posted “City Mouse” shortly after CSS Table Gallery went up. I’ve recently changed my domain name to hadseldesign.com instead of how it is listed and hosted on the site. Unfortunately, hadsel-design.com (with a hyphen) will not be supported much longer and I’d like to know how to have the domain name changed to hadseldesign.com (without the hyphen) on the entry’s links. The css and image files are in the same folder (tableshow) on the new server as they were on the old server.

  59. janegan Says:

    Learning, I must redesign my site

  60. Mark Says:

    Dumb newbie question probably, but if one downloads the css files, there are urls with .gif files. I don’t see the gif files — only the css. How ould one get the gif files or do they create them themselves?

  61. sosyal bilgiler Says:

    Thanks for the very useful info. I want to learn css and css table gallery well. Regards.

  62. Sean Dempsey Says:

    Awesome set of stylesheets. I have incorporated their use into a PHP API I wrote allowing for ajax-based CRUD operations on database content.

    See a reference to your site in my api documentation here:
    http://www.ajaxcrud.com/api/index.php?id=setCSSFile

    Thanks again for a great resource.

  63. demir fiyatlari Says:

    Very very useful and great work

  64. Ana Says:

    Hello, look in the link of Jacob Emiliano and you can see there a web XXX. Siento no explicarme con más claridad pero no sé demasiado inglés, pero no me parece adecuado que haya una web de esas aquí.

  65. Ana Says:

    sorry, the autor of the link xxx it isn’t Jacob Emiliano, is Cleiton Francisco from Brazil

  66. The Practical Website Development Resource Says:

    Great idea and remember, table is for data presentation not for page layouts. I submitted a design called Grey Scale. Hope to see it published very soon.

    Thanks.

  67. nancy Says:

    How to use it I do not understand, so u write how use it .But i know it is very useful for webdesigner.

  68. ersie Says:

    Thank you so much for this effort. It took me a while to find this page (I can’t remember exactly where I found a link to here) but it was worth it. I think I’ll use the TagBox design for the tabular data about low-energy-building construction on my website. I still have a bug or two to sort out (e.g. a huge space introduced above the table by Blogger) so it might be some time before the usage shows up on my site but anyway, thanks again!

  69. aSKer Says:

    Wow! what a resource ! Amazing …

  70. Mark Says:

    What do I do if I want to use a style for only one table on the page, and not all. I know I need to make it a “class”, but how?

  71. Martin Says:

    Hi!

    I’m just a further fan of your site and I want you to know that. Thanks!

  72. ilic Says:

    Thanks a lot
    Regards

  73. like_table Says:

    How can we get the images associated with those styles? Can you make a link for us to download those images once for all?

  74. guest Says:

    By the way, is there any license for these designs? Can we use it commercial projects for the clients?

Leave a Reply

Wait till I come! is the blog of Christian Heilmann , a developer evangelist living and working in London, England. Download vcard.

Feed me, Seymour: Entries (RSS) and Comments (RSS).