Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-24-2012, 07:03 PM   PM User | #1
esthera
Senior Coder

 
Join Date: May 2004
Posts: 1,431
Thanks: 14
Thanked 0 Times in 0 Posts
esthera can only hope to improve
dropdown is not dropping down in ie

this works in firefox but in ie the dropdown doesn't dropdown

i'm using the following css

Code:
.sidebar {
	background:gray;
	padding:1em 2em;
	border-left:1px solid #ccc;
	border-right:1px solid #ccc;
}

.sidebar ul {
	padding:0.5em 0 1em 0;
	position: relative;
	 z-index: 597;
}

.sidebar ul:first-child {
	margin-bottom:3em;
}

.sidebar li {
	display:block;
	list-style:none;
	padding:0.2em 0;
	/*background:url(../images/arrow.png) 0 50% no-repeat;*/
	border-bottom:1px solid #ccc;
}

.sidebar ul li.hover,
.sidebar ul li:hover {
 	position: relative;
 	z-index: 599;
 	cursor: default;
}

.sidebar ul ul {
 	visibility: hidden;
 	position: absolute;
 	top: 0;
 	left: 100%;
 	z-index: 598;
 	width: 170px;
	background:#eee;
	border-left:1px solid #ccc;
	border-right:1px solid #ccc;
	padding:0;
	margin:0;
	/*padding:0.5em 1em 1em 1em;*/
 	/*padding:0.5em 0 0.7em 0;*/
}

.sidebar ul li:hover > ul {
 visibility: visible;
}

.sidebar ul ul li {
	margin:0 0.5em;
}

.sidebar ul div.ul_top {
	margin-top:-6px;
}

.sidebar ul div.ul_bottom {
	margin-bottom:-6px;
}



.sidebar a {
	display:block;
	padding:0 0 0 0.8em;
	color:#444;
	text-decoration:none;
	background:url(../images/arrow.png) 0 50% no-repeat;
}

.sidebar a:hover, .sidebar a:focus, .sidebar a:active {
	background:#ccc url(../images/arrow.png) 0 50% no-repeat;
}
esthera is offline   Reply With Quote
Old 11-24-2012, 08:15 PM   PM User | #2
j4v3d
New Coder

 
Join Date: Mar 2009
Location: UK
Posts: 34
Thanks: 6
Thanked 0 Times in 0 Posts
j4v3d is an unknown quantity at this point
can you post a link to the website so people can have a look and test it for you - there is not much to go on from the CSS you have posted.

I could guess and say maybe it has something to do with z-index but like i said post a link so we can give a more definitive solution to your problem.
__________________
MJCoder
Twitter
j4v3d is offline   Reply With Quote
Old 11-24-2012, 08:17 PM   PM User | #3
Excavator
Master Coder


 
Excavator's Avatar
 
Join Date: Dec 2006
Location: Alaska
Posts: 9,410
Thanks: 22
Thanked 1,765 Times in 1,749 Posts
Excavator has a spectacular aura aboutExcavator has a spectacular aura aboutExcavator has a spectacular aura about
Hello esthera,
What version IE? I know earlier versions (IE6 and lower?) could not hover an li, had to hover an anchor.

If it's not working in any IE, you probably left out the DocType.
__________________
Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad
Excavator is offline   Reply With Quote
Old 11-25-2012, 06:58 AM   PM User | #4
esthera
Senior Coder

 
Join Date: May 2004
Posts: 1,431
Thanks: 14
Thanked 0 Times in 0 Posts
esthera can only hope to improve
it was the doctype

thanks for your help
esthera is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

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

Forum Jump


All times are GMT +1. The time now is 07:24 AM.


Advertisement
Log in to turn off these ads.