b3ta.com board
You are not logged in. Login or Signup
Home » Messageboard » Message 9776433 (Thread)

# they call him MISTER Tribs!
slight tj: who would like to tell me, in idiot-proof terms, about positioning overlapping DIVs with z-index?
(, Mon 2 Nov 2009, 13:03, archived)
# have you turned it off and back on again?
(, Mon 2 Nov 2009, 13:04, archived)
# What do you need to know?
(, Mon 2 Nov 2009, 13:04, archived)
# I want to stack some transparent PNGs on top of each other
(actually I'm not sure I have to put them all in DIVs)

like this:


where there are three DIV layers (the middle one contains 3 images)

it's the top one I want to stick on top - but I can;t seem to float it properly
(, Mon 2 Nov 2009, 13:11, archived)
# did you put the flarble up the glarp beforehand?
you also need to do this in fbbel mode
(, Mon 2 Nov 2009, 13:15, archived)
# You do it with absolute positioning, and then the higher numbered z-indexes are above the lower numbered ones
I'd use DIVs, for sure...

umm let me dig out an example and I'll gaz it to you

EDIT: Actually, do what Gravytrain says instead...
(, Mon 2 Nov 2009, 13:16, archived)
#
you should only have an issue with z-indexes if you're floating something over a flash movie or a form element
(, Mon 2 Nov 2009, 13:23, archived)
#
div - middle layer div
   div - position relative, float right (otherwise empty)
      div - position absolute, contains whatever you want in the top layer
      slashdiv
   slashdiv
slashdiv

by using an empty relative-positioned div as a wrapper for an absolute-positioned div you can put it wherever you like. use "top" and "left" css on the absolute-positioned div to move it around more if you want to
(, Mon 2 Nov 2009, 13:17, archived)
# ta
I'm getting there slowly - I think I explained it as being simpler than it actually is
(, Mon 2 Nov 2009, 13:43, archived)
# You have to ensure your x-axis is parallel and coefficient with the plural index
(, Mon 2 Nov 2009, 13:07, archived)
# Just take the FFT and do everything you need in fouirer space.
(, Mon 2 Nov 2009, 13:09, archived)
# Nuke it from orbit
it's the only way to be sure
(, Mon 2 Nov 2009, 13:11, archived)
# Thurst the klonking glave in the pootigage and then rotate the fluncking shine from the glorble to stetinate the snurgererger.
Then fuck it.
(, Mon 2 Nov 2009, 13:22, archived)