HOME | DD

zilla774 — HTML Tabs using Lists and CSS

Published: 2006-06-20 18:16:53 +0000 UTC; Views: 19671; Favourites: 251; Downloads: 3252
Redirect to original
Description This is a HTML and CSS tutorial showing how to create Tab tops for your website pages, using unordered lists and CSS, which are compatible with the following browsers:

Internet Explorer 5
Internet Explorer 5.5
Internet Explorer 6
Firefox
Mozilla
Safari
Netscape 7
Opera

(basically all of them...)

This was a project I have been working on with a friend of mine, Emma (www.basement59.co.uk) which had to be compliant to a whole heap of accesibility guidelines and also specifically work all the way back to IE5.

Hope this is useful to someone

Download the ZIP for the accompanying source files.
Related content
Comments: 79

janvanlysebettens [2006-06-21 12:30:39 +0000 UTC]

Nice tutorial.
Although I was already capable to create such a menu, it's good to see some of these tutorials on dA.
As a matter of fact I didn't even know there was a dreamweaver category here.
Nice work.

👍: 0 ⏩: 0

DanielRabjerg [2006-06-21 11:12:43 +0000 UTC]

Why use 3 images when all you need is one?

👍: 0 ⏩: 0

overseer [2006-06-21 10:40:23 +0000 UTC]

Very nice. I wish more tutorials would be that simple and to the point.

👍: 0 ⏩: 0

NEOkeitaro [2006-06-21 10:27:41 +0000 UTC]

WOW, this is very usefull, thanks !

👍: 0 ⏩: 0

paroxysm [2006-06-21 09:42:14 +0000 UTC]

some suggestions:

ul.tabs li { font:bold .8em tahoma; } (shorthand)
ul.tabs li a:hover remove 'float' + 'padding' declarations (already inherited; unless there are cross-browser issues )
each instance of '#ff9933' can be shortened to '#f93'

... apart from a couple of minor semantic changes i'd make, this is pretty tight.

👍: 0 ⏩: 1

zilla774 In reply to paroxysm [2006-06-21 10:17:40 +0000 UTC]

I was going to make some shorthand adjustments, but as i was trying to keep this in line with both the novice and expert HTML/CSS person, I figured it was safer to spell it out. But yeah, good points, thanks for the suggestion.

the extra float and padding solve an IE5 problem, if it wasnt for having to code for that, this code would be WAY simpler....

👍: 0 ⏩: 1

paroxysm In reply to zilla774 [2006-06-21 10:56:14 +0000 UTC]

anytime. may your semantic markup always degrade gracefully.

👍: 0 ⏩: 1

zilla774 In reply to paroxysm [2006-06-21 12:35:48 +0000 UTC]

👍: 0 ⏩: 0

Serve [2006-06-21 07:30:36 +0000 UTC]

This is sweet. Really helpfull. Thanks!

👍: 0 ⏩: 0

moonground [2006-06-21 06:24:50 +0000 UTC]

Nice tutorial! Btw. i guess you could combine this with a non-flickering css-image technique, but i guess you will lose some of the compatibility to older browsers...
Anyway, you can read "the Sliding Doors 2" at "A List Apart" here

👍: 0 ⏩: 0

recon-bandit [2006-06-21 03:55:29 +0000 UTC]

woa cooo .. more info i could use!!! YESSSSS. tnx alot for doin this... i learn more everyday!!!

👍: 0 ⏩: 0

dragontech22 [2006-06-21 03:33:46 +0000 UTC]

Hey, excellent work! I know photoshop, but i'm not very good with html, so this is definatly teaching me something. Thanks a bunch! Its nice to see people willing to share their knowledge to help people.

👍: 0 ⏩: 0

Seikin [2006-06-21 01:49:15 +0000 UTC]

Now this is a brilliant tutorial... I didn't think I would get it due to lack of time spent in the Html/Css area, but even I got this... and it wwasn complex while giving proper eamples and exxplanations.

👍: 0 ⏩: 0

voyez [2006-06-21 01:27:45 +0000 UTC]

cheers mate, exactly what i've been looking for.

👍: 0 ⏩: 0

kev2137 In reply to ??? [2006-06-20 23:58:47 +0000 UTC]

Oh jeebus, I wish I had known this much earlier XD Thankies a bunchies zilla man I'll know in the future to refer to this if I happen to need it ^_^

👍: 0 ⏩: 0

sushipixel [2006-06-20 23:26:56 +0000 UTC]

This is awsome , ive always wanted to do this , ive always reliaed on imageready to do the slicing and roll overs , but this is awsome .

👍: 0 ⏩: 1

Pt3r In reply to sushipixel [2006-07-21 09:30:08 +0000 UTC]

welcome to the wonderfull world of CSS, no more tables

👍: 0 ⏩: 1

sushipixel In reply to Pt3r [2006-07-22 07:16:29 +0000 UTC]

Yep CSS is great . Especially its versitility .

👍: 0 ⏩: 0

rinnalynette [2006-06-20 22:03:50 +0000 UTC]

zilla...you're so cool.

👍: 0 ⏩: 0

chaplin007 [2006-06-20 21:09:57 +0000 UTC]

cool it works!

👍: 0 ⏩: 0

Mareth [2006-06-20 20:58:15 +0000 UTC]

Wow, great tutorial! Except I know next to nothing about web design, but...this is still a great thing to have! ~_~

👍: 0 ⏩: 0

MirusLuna [2006-06-20 20:14:07 +0000 UTC]

I become lightened Cool!!

👍: 0 ⏩: 0

zzzzra In reply to ??? [2006-06-20 18:53:06 +0000 UTC]

Thanks a lot for this brilliant tutorial !

👍: 0 ⏩: 0

bluespeed9 [2006-06-20 18:26:53 +0000 UTC]

Well played, sir, well played.

Must say, I am impressed.

👍: 0 ⏩: 0

evil-one [2006-06-20 18:24:35 +0000 UTC]

Becoming quite the tutorial guru lately eh?
Always nice to see someone lending a hand to those in need.

👍: 0 ⏩: 0

PlasmaX7 [2006-06-20 18:24:20 +0000 UTC]

Wasn't expecting this from you, but it's come as a very welcome suprise. So thanks very much!

By the way, if you have any info on setting up a gallery slideshow (one where you have to click to get to the next image) using css and html, it would be very welcome.

👍: 0 ⏩: 0

DeadlyDoorKnob [2006-06-20 18:21:07 +0000 UTC]

Ahhmygod thankies!! Everyone could use this info.

👍: 0 ⏩: 0

Maw123 [2006-06-20 18:20:55 +0000 UTC]

thats cool not that i make web pages but is good to see how it work i might tell me bro about that thanks

👍: 0 ⏩: 0