Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 02-17-2008, 11:47 AM Tabbed Box
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
Hey guys.
Currently for my website im trying to make a box of content for a site im working on.
What I want is so that I would have a box with 3 tabs on the tpo and when a tab is clicked on it displays different content.
It would look something like in the attachment (but better).

Ive found an example, its almost exactly how i want it to look:
http://www.swindontownfc.premiumtv.co.uk/page/Home/
If you scroll down, they use about 4 tabbed boxes, i think the first one is called 'partners'.

One thing, i know it can be done without the use of javascript and so please can no-one suggest the javascript method.

Thanks.
Attached Images
File Type: jpg tabbedbox.jpg (22.6 KB, 5 views)
Joshy D is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-17-2008, 02:30 PM Re: Tabbed Box
bas
Super Talker

Posts: 108
Name: Bas
Trades: 0
You can use CSS to hide and show content, but the mechanism for showing and hiding different content after clicking can’t be done with CSS.

According to me there’s (except when you use frames to show the content) no possible way to do this without JavaScript.
bas is offline
Reply With Quote
View Public Profile
 
Old 02-17-2008, 03:00 PM Re: Tabbed Box
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,371
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Can't be done with CSS only
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-18-2008, 04:26 AM Re: Tabbed Box
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
im sure ive seen it done without javascript before. o well.
i gues i'll have to use js then.
thanks, anyway guys.

EDIT: Hey just noticed the emphasis on the word 'clicking' in bas's post, whats that about, does he mean it can be done if you like, hover over it or something?

Last edited by Joshy D; 02-18-2008 at 04:27 AM..
Joshy D is offline
Reply With Quote
View Public Profile
 
Old 02-18-2008, 08:04 AM Re: Tabbed Box
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
Yes josh, i believe it is possible to use pure css to have it so if you hover over it it changes...

but this could be very annouying...
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Old 02-18-2008, 08:06 AM Re: Tabbed Box
Joshy D's Avatar
Extreme Talker

Posts: 178
Name: Josh
Trades: 0
Ok, i've found something that is exactly how i want it, its exactly what im trying to make, but, theres no learning in copying and pasting so this is what im trying to achieve, how can i do that thing with the tabs?
http://www.cssplay.co.uk/menu/slide_show

EDIT: Link fixed.

EDIT 2: It's alright guys, im sure i can work it out. Thanks anyway.

Last edited by Joshy D; 02-18-2008 at 08:13 AM..
Joshy D is offline
Reply With Quote
View Public Profile
 
Old 02-20-2008, 06:28 AM Re: Tabbed Box
RadGH's Avatar
Skilled Talker

Posts: 76
Name: Radley
Trades: 0
I've seen some web templates with tabs that use seperate pages for each tab. I don't know if thats what you're looking for though.

But if thats the case, just use an external style sheet applied to each page, and to make the tab effect just make one of the tabs have an id called "selected". Just make the "selected" tab correspond to the page you are editing.

Of course with this, updating your site is a nightmare... (unless you use PHP to include the base of the template, and then edit it globally)

EDIT: See here for a "pure CSS tabbed navigation" example.

Last edited by RadGH; 02-20-2008 at 06:29 AM..
RadGH is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Tabbed Box
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.65439 seconds with 13 queries