Inverted Sliding Doors Tabs
A few days ago I promised to write about something that isn’t about different ways of styling boxes with CSS. To keep that promise (well, almost – dropshadows are used in this demo), I’ve written an explanation of how I adapted Doug Bowman’s Sliding Doors technique to work with inverted tabs for a recent redesign of netrelations.se (my colleague Tobias Nilsson did the design). By inverted tabs I mean that they are bottom-aligned, and as text size is increased, more and more of the tabs will be revealed from the top down, instead of from the bottom up as in the original Sliding Doors technique.
Here’s a screenshot of the tabs:
The tabs being inverted, or upside down, and the dropshadow cast by the header image prevented me from using the original technique without modifying it.
The changes are explained on the Inverted Sliding Doors Tabs demo page.
- Previous post: On separate but equal design
- Next post: Quick guide to UTF-8
Subscribe / follow
Sponsors
Authentic Jobs
- User Experience Architect at Verndale (Boston, MA, Ma, US)
- Art Director at Mutual Mobile (Austin, TX, Te, US)
- Front End Developer/Website Manager at Chapelboro.com / WCHL (Chapel Hill, NC, No, US)
- Visual Designer at Hanson Inc. (Maumee, OH, Oh, US)
DreamHost web hosting
Use the promo code 456BEREASTREET3 to save USD 20 when you sign up for DreamHost


Comments
It’s a very nice solution. I have allready used sliding doors for a inhouse project and it works fantastic. At the moment I’m surfing the web for new ideas for my new private project. I think I will impliment the nice inverted sliding doors. Thank you for your side.
Very well done. I really like the inverted tab solution. I am going to try and get the :hover to work though. Will let you know what I come up with! Thanks.
Nice Jorb!
I noticed in your CSS, you have measurements without units. i.e. margin: 0; padding: 0;
without a unit of measurement like margin: 0px;
will it still validate without the px?
Kato
Kato: Yes, it is valid. No unit is necessary when the value is 0. Zero is zero, no matter what the unit is.
Very nice. Only, if you change the text-size (e.g. 120% in Mozilla) the gfx doesn’t show correct.
So long,
Tobias
Tobias: I know. I can live with that visual glitch though. It’s not a huge problem IMO.
Thats great mate i’ll have to nick this (sorry borrow) soon :-)
how would it be possible to adapt this to work with a dynamic menu? like in a CMS…it looks like this menu need to be ‘static’ because you need to define the menu item ‘names’ in th ecss as well… any thoughts?
I implemented this using Movable Type 2.6 as my CMS. In order to get the tabs to display correctly for each of my category pages, I simply replaced the <body id=staticcategoryname> with Movable Type’s MTArchiveCategory dynamic tag in the Category Archive template. I left the Main template alone (using Home for the body id). I haven’t completed the graphics, but you can view the source on passtheveggies.com. Note that is looks much better in Firefox- I have some strange behavior with the fifth tab in IE 6.
Berea, thanks again for the great adaptation and sample page!
Comments are disabled for this post (read why), but if you have spotted an error or have additional info that you think should be in this post, feel free to contact me.