Tibor SzászInteraction matters

  • Home
  • About me
  • Projects
  • Reqest price offer
  • Contact me
  • RSS

2009 1205

Tabbed CSS only website template

Tabbed CSS only website template Did you know what a small anchor link can do for you? More, than you might think. You can turn it into an advanced navigation on your website. There is nothing new in this, it was designed to do this. This only make sense, if the scrollbars are visible in your browser, isn't it? Well, no. Anchor links even work, when the invisible content is in an overflow: hidden container. The target element should have the same ID as the anchor link's href attribute.

Show content
Very very long text... images... forms... btw my over flow is hidden...
I'm invisible by default, but your click just revealed me. :)
This is really nice, but this is too nice to be true. The bad guy this time is Opera. She refuses to play the game and anchoring simply doesn't work in overflow: hidden elements.

After some experimenting, I came up with a working solution: Opera jumps to the desired point, if the overflow is auto. Great, I only need to hide those scrollbars, and I'll have a cross browser, JavaScript free navigation system, that just rocks.

The trick is, that you have to put the overflow:auto element in an overflow: hidden wrapper, that crops the scrollbars.


I've created an example website template, that can be uses for free. You can download it right below.

Click here for a LIVE DEMO

attachmentFile attached to post: css-tabbed-website-template.zip


Comments


#01

miért angol a cikk, ha az oldal többi része magyar?

és mi ebben olyan nagy újdonság?

Posted by: Winkler Balázs @ 2009-12-10 23:00

#02

Szia Balázs,

A blog elsősorban angol nyelvű, de a kezelőfelület megvan magyarul is.

Az újdonság az, hogy a megoldásom működik Operában is, valamint nem szükséges JavaScript a dologhoz. Ad továbbá egy roppant egyszerű szemléletet is, amivel gyrosan lehet látványosat alkotni.

Posted by: Tibor @ 2009-12-11 10:51

#03

Very nice I must say. I was a bit confused at start but then I got it. ^^

Posted by: Viktor Edholm @ 2009-12-21 21:51

#04

Not very SEO friendly. Search engines dont ready after the #

Posted by: Jones @ 2009-12-21 22:03

#05

Very cool concept, but when I hit the back button it doesn't go back to the actual content. Sure JS could fix it, but then it won't be 100% CSS.

Still nice article, bookmarked.

Posted by: Sunny Singh @ 2009-12-21 22:07

#06

"Not very SEO friendly. Search engines dont ready after the #"

@Jones: Doesn't matter much, any engine will index the all the content in the page anyway.

Posted by: Henrique @ 2009-12-21 22:07

#07

Thank you for your replies.

@Jones: you have all the content on one page, without css it's just a simple, structured document. You can also make a sitemap.xml with hashmarks included.

Posted by: Tibor @ 2009-12-21 22:09

#08

Great post, i've been working on this for few days and after a while i came up with the same solution you just wrote about.

Thanks for share

Posted by: Jasha @ 2009-12-22 00:41

#09

This is super cool. I can't wait to dig into it more. Thank you for sharing.

Posted by: Jacob Schulke @ 2009-12-22 06:25

#010

I can see a very big flaw in this. The user can use their mousewheel to scroll through the content without using the tabs. Good use of CSS and HTML, but not very usable in the real world.

Posted by: James @ 2010-01-11 11:39

#11

Thank you for showing us this article, it is really very well written and well constructed from top to the bottom. I found out it is easy to follow your tips.

Posted by: web design sydney @ 2010-02-01 02:35

Add new comment


Your name
Email
Your avatar
Website
Comment

Briefing

Me myself and I
I love coding, especially for the web. I'm in the online industry for 6 years. My favourite toys are:
JavaScript, PHP, XHTML, MySQL, Canvas, Flash
Váltás magyar nyelvre

Topics

  • Coffee break
  • Design & stuff
  • Generative arts
  • Programming

Friends

  • Kárpáti Róbert
  • Royaljerry
  • Bagi Zoltán
  • Pegazoo
  • Charles Alexander Deli
  • Bence Bangócs
  • Lunakid
  • Rapp design

Feeling so social

  • Facebook
  • IWIW
  • TurulMeme

Tags

javascript (12) php (6) mootools (4) iscaffold (3) codeigniter (3) crud (3) tutorial (2) google (2) renders (2) structure-synth (2) css (2) template (2) free (2) google-buzz (1) script (1) forge (1) hack (1) table (1) open-source (1) rc1 (1) infovis (1) rss (1) interface (1) canvas (1) design, (1) user (1) experience (1) soundcloud (1) resizing (1) joomla (1) bermuda-triangle (1) wordpress (1) drupal (1) data-visualisation (1) data-uri (1) konami-codes (1) tagging (1) slimbox (1) bugfix (1) cfdg (1) blackout (1) firefox-extension (1) utf8 (1) class (1) slideshow (1) nl2br (1) experiment (1) svg (1) library (1) ajax (1) sitebuild (1) tabs (1) inspiration (1) lists (1) drag-and-drop (1) wikipedia (1) dns (1) trick (1)




All rights reserved, ©2008-2010 - Built on CodeIgniter framework - Konami codes - Mostly Valid XHTML 1.1 - Valid CSS 2.1