Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

z index

Status
Not open for further replies.

artdog2

IS-IT--Management
Feb 4, 2006
3
CZ
Does z index only work when a div has absolute positioning?
 
Ok so I have set up the page in question online at
I have set the div around the left "drop shadowed card" to have a -10 margin. The "logobar" div has a z of 0 and the left card has a z of 2. Why then is the leftcard div disappearing behind the logobar div? There is a graphic in the topbar div. Is it not possible to overlap the leftcard div on the logobar div if there is a graphic in the logobar div?
 
You'll need to make them position relative for the z-index to work.

Also, AFAIK, z-indexes only work among sibling elements - so you may have to move the leftcard div up a node level for it to be effective.

Dan



[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Ok that is sorted. Thanks for the help. I have uploaded a new file. Can anyone give me some help with the IE problems? It looks correct in Firfox but in IE there are obvious problems.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top