WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > Having trouble with div element not showing on top

Reply
  Thread Tools Display Modes
Old 10th August 12, 09:11 PM   #1
kts
WLC Member
 
Join Date: Jul 2008
Posts: 10
Default Having trouble with div element not showing on top

I have a plugin I'm using that has a drop down from a <select>.
The z-index of the div that is dropping down is set to 1010 default.
The other element do not have a z-index set at all, yet this is being hidden.

Is there another property I should look into? I would like to have this show on top of all other elements as it will be closed.
kts is offline   Reply With Quote
Old 10th August 12, 10:14 PM   #2
affiepaarl
WLC Member
 
Join Date: Aug 2012
Posts: 3
Default Re: Having trouble with div element not showing on top

Give 'The other element' a position: relative; and a z-index: 9999, and see if that makes it move to the top.

Without code I can't really tell what the problem is.
affiepaarl is offline   Reply With Quote
Old 13th August 12, 05:20 PM   #3
kts
WLC Member
 
Join Date: Jul 2008
Posts: 10
Default Re: Having trouble with div element not showing on top

Hey thanks for the quick response... I have tried this it seems to be having the opposite effect.. weird.

I will try to get the code together, so many moving parts.
kts is offline   Reply With Quote
Old 13th August 12, 10:57 PM   #4
meesa
WLC Mod
 
meesa's Avatar
 
Join Date: Jul 2009
Location: Milky Way Galaxy
Posts: 3,138
Default Re: Having trouble with div element not showing on top

Put position:relative and z-index:xx on both elements, then just give the one you want on top the higher z-index.
__________________
Praise be to the Lord God for the ability to learn, the capability to analyze, and the time to help users on this forum.
meesa is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Hybrid Mode Hybrid Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:46 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.