Welcome to WebmasterWorld Guest from 54.147.44.13

Forum Moderators: not2easy

Message Too Old, No Replies

help with overlapping divs

div z index

     
5:50 am on Jan 3, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:June 23, 2009
posts:42
votes: 0


I can't seem to overlap divs the way I want and need help.

I have a header div with a tab I want to hang over an image in a content div just below the header div. The header has this tab and the div below a large image. I tried using Z index but nothing happens. I gave the header div a high index and the div below a lower index number.

What can I do to make this effect work?

Any help would be great
Thanks
Rob

9:49 am on Jan 3, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member jab_creations is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 26, 2004
posts:3145
votes: 12


First determine if you should be using negative margins first.

If negative margins don't work then you need to position the div (usually relative) with usually either one or two of the related CSS2 properties (top, right, bottom, left). Then you apply z-index.

- John

6:37 pm on Jan 4, 2010 (gmt 0)

New User

5+ Year Member

joined:Jan 4, 2010
posts:5
votes: 0


Can anyone tell me how to fix my navigation please. I'd be ever so grateful for help. thanks in advance :)
7:05 pm on Jan 4, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:June 23, 2009
posts:42
votes: 0


thanks that worked, they overlap. I set the header to fixed and the div under to relative. The only thing is the whole page now scrolls. Should I set them both to fixed?

I want to overlap like on this site
[rideoregonride.com...]

Basically I want a header overlapping large photo like it is here
Thanks

9:48 pm on Jan 4, 2010 (gmt 0)

Junior Member

5+ Year Member

joined:June 23, 2009
posts:42
votes: 0


I think that may be a problem with your womode. The value should be set lower letting the drop down over the text and image
10:30 am on Jan 6, 2010 (gmt 0)

New User

5+ Year Member

joined:Jan 4, 2010
posts: 5
votes: 0


excuse my lack of knowledge. whats my womode? thanks for your help :)
4:20 pm on Jan 6, 2010 (gmt 0)

New User

5+ Year Member

joined:Jan 4, 2010
posts:5
votes: 0


anyone? :(