DotDragnet
May 23, 2012, 02:22:58 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Mobile users - Our forum is Tapatalk enabled. http://www.tapatalk.com/
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Z-index menu problems  (Read 1220 times)
Tanthalas
Hero Member
*****
Posts: 1019



View Profile WWW Awards
« on: June 26, 2007, 07:59:26 PM »

I'm trying to create a horizontal tabbed menu, with overlapping image tab backgrounds.  I've gotten as far as the "horizontal" and "tabbed" bits, with everything positioned as it should be, but I'll be damned if I can get the overlapping right.

http://sandbox.neodaemos.co.uk/menutest/test.html

Each tab should overlay the one to the right of it.  Currently it's in source order - ie, the other way round.

I've tried using some z-index stuff to fix it, but to no avail so far.  Thought I'd got my stacking contexts right, but obviously not. Can anyone tell me where I'm going wrong with this?  TIA
Logged

Aperture Science
We do what we must because we can
For the good of all of us, except the ones who are dead.
But there's no sense crying over every mistake
You just keep on trying 'til you run out of cake
And the science gets done, and you make a neat gun
For the people who are still alive
Mr Anderson
DDN Contribs
Hero Member
*****
Posts: 2267



ap4a.uk ap4a
View Profile WWW Awards
« Reply #1 on: June 26, 2007, 08:45:29 PM »

You're floating them, when you should be (absolutely) positioning them within the list.
Logged

Tanthalas
Hero Member
*****
Posts: 1019



View Profile WWW Awards
« Reply #2 on: June 27, 2007, 07:41:24 PM »

Cheers Mr teh Hurri.  That seems to be working fine. big grin
Logged

Aperture Science
We do what we must because we can
For the good of all of us, except the ones who are dead.
But there's no sense crying over every mistake
You just keep on trying 'til you run out of cake
And the science gets done, and you make a neat gun
For the people who are still alive
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2008, Simple Machines Valid XHTML 1.0! Valid CSS!