tags:

views:

44

answers:

4

Hi, if i were to create tab pages in HTML, what 'container' so i need to produce multiple times for each 'page'? I was just going to adjust the 'visible' property (whichever one doesnt take up layout space when unselected) when the button is clicked.

+1  A: 

I recommend the jQuery UL Tabs: http://docs.jquery.com/UI/Tabs

PeterWong
+1  A: 

You'll need to use a bit of JavaScript to achieve this, jQuery will be your easiest option, check out the jQuery UI tabs, this is what you need.

http://jqueryui.com/demos/tabs/

ILMV
"a bit of JavaScript": you mean jQuery + jQuery UI = 70k??? little right...
galambalazs
Yeah? And if you get them from a CDN they'll probably be cached from another site, if you'd like to suggest a different method then feel free.
ILMV
it sounds good except it's not true - http://bit.ly/9G5sGX
galambalazs
But still what's your point? He asked for a solution to his problem and he got one?
ILMV
A: 

If you dont want to use javascript, it can be done by css3 http://carsonified.com/blog/dev/stay-on-target/

Codler
css3 is not even a finalized specification. It can be trashed or changed...
galambalazs
@galambalazs That does not mean it should be ignored, both of your comments are completely pointless as the author never said in what environment his problem existed in, if it was an intranet he may well be able to use CSS3, and it will not be trashed.
ILMV
to hell with accessibility, right? who cares users? use shiny new stuff which is 3 lines for me, no matter if it wont work for most of the users out there...
galambalazs
Ever heard of graceful degradation? Because it turns out that concept will allow a website to remain accessible if CSS / JavaScript isn't able to operate.
ILMV
A: 

You can create this pages with using CSS easily.

Here sample examples

http://www.dynamicdrive.com/style/csslibrary/item/css-tabs-menu

http://www.alvit.de/css-showcase/css-navigation-techniques-showcase.php

There are many tools to create tab menus.

http://www.tabsgenerator.com/

Judas Imam