Problems with my CSS Drop Downs In IE

This is a discussion on "Problems with my CSS Drop Downs In IE" within the Web Page Design section. This forum, and the thread "Problems with my CSS Drop Downs In IE are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Jan 9th, 2008, 17:41
New Member
Join Date: Jan 2008
Location: Cincinnati
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Problems with my CSS Drop Downs In IE

Hey Everyone,

I am almost ready to cry this is so frustrating!

I have created CSS drop down's on a couple of sites. However, it works fine on all websites I use except for one! I cannot get it to work correctly.

You can see my functional drop downs in IE here:

http://www.designingdigitally.com


now you can see my functional yet messed up drop down here:
http://www.ohioascd.com

I am using the exact same drop down CSS code on bot sites. But as you can see the www.ohioascd.com site does not line up correctly. The boxes are behind and right on top of the buttons.

Here is my coding:


#cssdropdown, #cssdropdown ul {
padding: 0;
margin: 0;
list-style: none;
overflow: visible;
}

#cssdropdown li {
float: left;
position: relative;
overflow: visible;
}

.mainitems{
border: none;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
}

.mainitems a{
margin-left: 0px;
margin-right: 0px;
text-decoration: none;
}

.subuls{
display: none;
width: 12em;
position: absolute;
top: 1.2em;
left:-0.8em;
background-color: #333333;
border: 1px solid black;
font-family:Verdana, Arial, Helvetica, sans-serif;
font-size:11px;
z-index: 0;
}

.subuls li{
width: 100%;
}

.subuls li a{
text-decoration: underline;
}

.subuls li a:hover{
color: #FF9B37
}

#cssdropdown li>ul { /* to override top and left in browsers other than IE, which will position to the top right of the containing li, rather than bottom left */
top: auto;
left: auto;
}

#cssdropdown li:hover ul, li.over ul { /* lists nested under hovered list items */
display: block;
}

#restofcontent { /*wrap rest of content of the page inside this div*/
clear: left;
}


Does anyone know why this is happening? HELP please?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Jan 10th, 2008, 09:30
Reputable Member
Join Date: Feb 2007
Location: UK
Posts: 190
Thanks: 0
Thanked 5 Times in 5 Posts
Re: Problems with my CSS Drop Downs In IE

I think we've all been at the 'ready to cry it's so frustrating' stage at some point.

I'm no genius when it comes to reading CSS however i can offer one suggestion that will solve the problem: conditional comments

Your site displays fine in Firefox. So you can use condional comments that only apply to people using IE. Do an internet search and you should get loads of info.

You wanna put something like if people using ie then the drop downs appear slightly lower.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Jan 10th, 2008, 09:36
Reputable Member
Join Date: Feb 2007
Location: UK
Posts: 190
Thanks: 0
Thanked 5 Times in 5 Posts
Re: Problems with my CSS Drop Downs In IE

There is actually a good mini tutorial in this month new newsletter but its currently broken. If you can wait a bit it should be fixed soon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Jan 10th, 2008, 14:55
New Member
Join Date: Jan 2008
Location: Cincinnati
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Problems with my CSS Drop Downs In IE

I had someone tell me it's because my css is not validated as correct. So I made sure everything was good to go on both my XHTML and my CSS.

Here is the link:

http://www.ohioascd.com/index_test.php

Does anyone have a good css drop down menu that will work with what I am trying to do? Everything is messed up in IE, and I need to get this fixed asap! Any resources?

Please let me know if and when the newsletter goes back up! I need all the help I can get on this!



Quote:
Originally Posted by dangergeek View Post
There is actually a good mini tutorial in this month new newsletter but its currently broken. If you can wait a bit it should be fixed soon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Jan 10th, 2008, 15:20
Reputable Member
Join Date: Feb 2007
Location: UK
Posts: 190
Thanks: 0
Thanked 5 Times in 5 Posts
Re: Problems with my CSS Drop Downs In IE

There's a million types of menu on http://www.cssplay.co.uk/ if you want to start the menu from scratch.

you can also learn about conditional comments here http://www.quirksmode.org/css/condcom.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Jan 10th, 2008, 17:30
Aso's Avatar
Aso Aso is offline
Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,341
Blog Entries: 2
Thanks: 11
Thanked 49 Times in 46 Posts
Re: Problems with my CSS Drop Downs In IE

I've always recommended Son Of Suckerfish dropdowns, from HTML Dog.

I use them all the time. Very easy to implement. Completely valid HTML. And only a touch of javascript for IE6 (and I mean a touch - 12 lines).
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning problems with horizontal drop down menu dreamabstract Web Page Design 2 Jun 16th, 2008 12:09
Having problems with a drop down menu eminee JavaScript Forum 7 Jan 8th, 2008 17:29
Cross Browser/Platform Issues with drop downs Maverick25r Web Page Design 2 Oct 4th, 2006 13:27
Drop down menu problems matelo JavaScript Forum 0 Jan 16th, 2006 16:48
date string-drop downs fluff Classic ASP 3 Aug 13th, 2004 14:33


All times are GMT. The time now is 17:47.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42