CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 29th, 2004, 06:52 AM
Screamager45 Screamager45 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 8 Screamager45 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question floated Div draws text over dropdown CSS

Hi there

I am having some trouble with my CSS dropdown menus.

I have a floated div that contains a welcome paragraph and a menu that drops down. What is happening is that the menu is being drawn behind the text of the welcome paragraph (see attached image).

Here are the classes...

This draws the welcome text
Code:
#welcome
{
	float:left;
	z-index:0;
	width : 360px;
	height:160px;
	margin-left:10px;	
	margin-top:30px;
	font-size: 0.8em;
}


And this is the classes for the dropdown

Code:
.dropdownlink a 
{
	display:block;
	width:150px;
	height:19px;
	font-size:0.8em;
	color:#000000;
	background: url(../images/nav_drop_bg.gif) top left no-repeat;
	text-decoration: none;
	padding-left:10px;
	z-index:1000000000;
}


and this is the HTML for the menu...
Code:
<div id="nav_1" style="visibility:hidden; position:absolute; top: 37px; left:28px; height:100px; width:128px;">
						<div class="dropdownlink"><a href="">Pain</a></div>
						<div class="dropdownlink"><a href="">Pain</a></div>
						<div class="dropdownlink"><a href="">Pain</a></div>
						<div class="dropdownlink"><a href="">Pain</a></div>
						<div class="dropdownlink"><a href="">Pain</a></div>	
					</div>



has anyone got any idea why this is ignoring the Z-index? It works in Opera, but in looks crap in IE. Is this a common problem, are there any workarounds.

Please help, I'm pulling my hair out !
Attached Images
File Type: gif tmp.gif (4.6 KB, 119 views)

Reply With Quote
  #2  
Old March 29th, 2004, 07:08 AM
jbot's Avatar
jbot jbot is offline
a rootin', tootin', shootin'
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Feb 2004
Location: location.href="hame"
Posts: 3,459 jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level)jbot User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Weeks 2 Days 8 h 7 m 36 sec
Reputation Power: 94
you need to give your menu a z-index too

Reply With Quote
  #3  
Old March 29th, 2004, 07:32 AM
Screamager45 Screamager45 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 8 Screamager45 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile

If only that were it. I've tried adding a z-index to the menu and it still displays wrong. Thanks anyway...

NEXT...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > floated Div draws text over dropdown CSS


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway