Muffinresearch Labs by Stuart Colville

Table showcase site | Comments (13)

Posted in CSS on 1st September 2005, 9:11 pm by Stuart

Chris Heilmann has come up with the great idea of a CSS table showcase to show off different table designs.

Being the enthusiastic chap I am, I’ve contributed my own table design entitled ‘Grey suits you sir!’ I’m pretty sure this site will be a useful resource as it grows into the future.

Post Tools

Comments: Add yours

1. On July 5th, 2006 at 7:26 pm Paul said:

Hi,

I’ve been trying your ‘Grey suits you sir! table design, but unfortunately, it seems that sometimes it renders differently in FF and IE. The biggest problem being the font size:
http://geocities.com/narnar2000/

Although here the fonts are the same size, just the hover effect doesn’t work in IE:
http://icant.co.uk/csstablegallery/index.php?css=6

I really like the FF rendering of the design, but is there something I’m missing for IE?

Thanks,

Paul.

2. On July 5th, 2006 at 10:51 pm Stuart Colville said:

The font-size issue is caused by not having specified a Doctype. As a result the page is being rendered in Quirksmode.

See http://muffinresearch.co.uk/code/xhtmlandcss/tabletest/ I’ve duplicated what you’ve done with a valid doctype and the font-size rendering in IE and Firefox are now the same.

The :hover pseudo protocol doesn’t work in IE for anything other than links (the a element). Because of this to get the hover effect working in IE you would need to use a touch of DOM scripting to replicate the same effect.

I’ve added an example of how this is done on the same link I mentioned above. Basically the javascript loops through all of the TRs on the page and when the mouse enters the TR a class of hoverfix is added to the TR. When the mouse leaves the TR the same class is removed. The class hoverfix is added into the CSS to use the same rules as all the browsers that support :hover.

Hope this answers your questions.

3. On July 6th, 2006 at 12:37 am Paul said:

Thank you very much for your explanation, and indeed, thank you for the time you took to do an example for me.

I’m certainly no web-design expert, but I help out on other topics where I can.

Thanks again for your work and your time.

Paul.

4. On September 16th, 2007 at 7:35 pm Scheiro said:

Thanks Stuart for tables ! CCS works fine and the design of the tables looks very nice.

5. On February 27th, 2008 at 7:15 pm Dan said:

using the above fix for IE rendering, how would I make it so that I can have two data tables with different styles? eg. one is ‘normal’ (without css) the other is ‘grey suits you sir’. I’ve tried giving all td/tr’s in the grey suits you a class name in the html code and the same in the CSS. Though I’m not sure how to give a class name to something such as “thead th”, “tbody tr td”, “tbody tr:hover”, “tbody tr.hoverfix td”. Giving class names to all else it doesn’t seem to fix it the problem of grey’s CSS code being applied to the table that I want to look normal, would that be the javascript that is interfering? Could you provide an example?

6. On February 27th, 2008 at 7:26 pm Dan said:

more specifically speaking, the hover function is the only function that does not work

7. On February 28th, 2008 at 9:18 am Stuart Colville said:

@Dan: the hover pseudo-class is not supported in IE versions prior to 7 on anything other than anchor elements (a).

To replicate the hover you would have to use javascript to set an additional class on mouseover. However you could also look at it from the perspective that if someone chooses to use IE they will miss out on that specific enhancement.

8. On February 29th, 2008 at 4:05 pm Dan said:

@Stuart: thanks. is there any way to use the javascript hover function you had shown above to only use TR’s that have class=”hover” or something like that. Wouldn’t doing that fix the problem?

9. On March 1st, 2008 at 11:31 am Stuart Colville said:

@Dan: Yes that’s right. You simply need to set a class on the tr onmouseover.

There’s a script here, to give you an idea of how it’s done: http://www.htmldog.com/articles/suckerfish/dropdowns/

10. On May 22nd, 2009 at 2:36 am Terry said:

Hi Stuart. Looking at your theme on the CSS Table Gallery the hovering works great. When I try to use this theme myself, I cant seem to get the hover to work? It seems simple, you have the tag, and then just a tag. What could be causing the hover not to work? It cant be an IE 7 issue as it works fine on the table gallery?

11. On August 9th, 2009 at 11:25 pm John Brand said:

I think the hover problem could also be that the images used for the background are not downloaded with the CSS. Where should they be downloaded from?

12. On August 10th, 2009 at 8:16 am Stuart Colville said:

Images are available from here: http://muffinresearch.co.uk/code/xhtmlandcss/tableshow/

13. On October 29th, 2009 at 9:20 pm Karl Pearson-Cater said:

Nice design!







XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



Using Loggerhead with mod_wsgi|(0)

Here’s a post I wrote over on the Project Fondue Blog about our use of Loggerhead with mod_wsgi under Apache. Loggerhead is the rather nice branch viewer for bazaar branches as used on Launchpad.net.

If you’re not already subscribed to the Project Fondue blog feed then I can recommend it, as there should be some interesting posts coming out of there in the coming months (yes I’m unashamedly biased!).

Ubuntu: Turn off changing workspace with mouse wheel|(1)

I found the changing with the workspace with the mouse wheel really annoying. To disable it go to System => Preferences => CompizConfig (available if the compizconfig-settings-manager package is installed) and uncheck “Viewport Switcher” which is under the “Desktop” heading.

Photos on Flickr

© Copyright 2004-10 Stuart Colville, all rights reserved. May contain traces of Muffin. Powered by WordPress. Hosting by Slicehost.com This page was baked in 1.348s.