473,412 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

CSS Dropdown error IE6

158 100+
Hi I'm using CSS for a drop down menu, and it works in firefox, opera, and i think ie7. The reason i say "i think" is because i'm now testing the page in ie6 and it doesn't work, but it used to in ie7. I've posted the CSS below.

Expand|Select|Wrap|Line Numbers
  1. <style type = "text/css">
  2.  
  3. #menu ul .top a {text-decoration: none; color: white;}
  4.  
  5. #menu ul .top a:hover {color: rgb(255,100,0);}    
  6.  
  7. #menu ul .top a     {font-weight: bolder; font-size: 16px; font-family: arial; sans-serif; text-align: left; background-color: black; margin-left: .2em;}        
  8.  
  9. #menucontainer{margin-right: auto; margin-left: auto; width: 48em;}
  10.  
  11. #menu {position: absolute; display: block; width: 48em;z-index: 1;}
  12.  
  13. #menu ul .item    {display: none; text-align: center;font-size: 12px;}
  14.  
  15. #menu ul:hover .item a {color:white; text-decoration: none;font-weight: bolder;}
  16.  
  17. #menu ul:hover .item a:hover {color:rgb(255,100,0);}
  18.  
  19. #menu ul    {color: white; width: auto; text-align: left; float:left;    list-style:none;}
  20.  
  21. #menu ul:hover .item    {display: block; padding-top: .33em; font-family: arial, sans-serif; background-color: black;}
  22.  
  23. .clear{clear:both;height:10px;}            
  24.  
  25. #menucontainer {margin-left: auto; margin-right: auto; padding-right: 5em;}
  26.  
  27. </style>
Any Ideas would be greatly appreciated.

Thank you!
Matt
Oct 26 '08 #1
8 2739
David Laakso
397 Expert 256MB
Insufficient information. Please provide a clickable link to the page in question. Anyone can then view the document markup and open the CSS file.
Oct 26 '08 #2
Markus
6,050 Expert 4TB
Use code tags when posting code, as well.

Markus.
Oct 26 '08 #3
Jollywg
158 100+
Insufficient information. Please provide a clickable link to the page in question. Anyone can then view the document markup and open the CSS file.
I need some help with this. I'm rather new to web design obviously. where can i go to get a free site to load this into?

Thanks
Oct 27 '08 #4
Markus
6,050 Expert 4TB
Google 'free web hosting'. I would give you some links but I don't know if it's against guidelines.
Oct 27 '08 #5
David Laakso
397 Expert 256MB
I need some help with this. I'm rather new to web design obviously. where can i go to get a free site to load this into?
Trust me-- even though this is a personal opinion: seeking free web hosting is an invitation for disaster. Web hosting is relatively inexpensive. It is imperative you go with a host/sever that is reputable. I'll let others point you to same.
Oct 28 '08 #6
Jollywg
158 100+
Trust me-- even though this is a personal opinion: seeking free web hosting is an invitation for disaster. Web hosting is relatively inexpensive. It is imperative you go with a host/sever that is reputable. I'll let others point you to same.
I will actually buy a site when i get my webpage done, i just need something so that everyone can see the big picture if(when) i need help.
Oct 28 '08 #7
Markus
6,050 Expert 4TB
I will actually buy a site when i get my webpage done, i just need something so that everyone can see the big picture if(when) i need help.
Post #5
Oct 28 '08 #8
JamieHowarth0
533 Expert 512MB
Hi there,

As much as we'd ideally like a link so we can see your page in action, I think I have an idea why your hovers aren't working.
Internet Explorer 6 has two modes - "strict" and "quirks" mode. When in quirks mode, using the CSS :hover selector won't work on anything except <a> tags.

There is a workaround to this, however - I suggest you download the HTC app from here. When you specify this on ul elements using behavior:url(csshover.htc), hovers will magically work in quirks mode!
Also, because the CSS property behavior is IE-specific, it won't break your other pages.
Ideally you'd use this code to implement it:
Expand|Select|Wrap|Line Numbers
  1. <!--[if IE 6]>
  2. <style type="text/css">
  3. <!--
  4. ul {behaviour:url(csshover.htc);}
  5. --></style><![endif]-->
  6.  
This way, the behavior only gets applied on IE6 (note the use of conditional comments). IE7 does not suffer this problem.

Hope this helps.

codegecko
Oct 28 '08 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: J P Singh | last post by:
Hi There We have dropdown on ASP page. The problem is we have about 900 items in the dropdown. Users scrolling through the list have become very frustrated in the past. Can someone suggest...
1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
4
by: Brian Conway | last post by:
I need some help on binding a datareader to a dropdown box. I have included the code for the dropdown below. It builds with no errors, but returns no results. Any help would be appreciated. ...
6
by: Paul | last post by:
I am trying to setup a field validator and tried using the control to validate set to a dropdown list box but did not seem to work. Is there anyway to set this up or do you need to use client side...
6
by: Jenna Alten | last post by:
I have a datagrid with a template column that contains a dropdown list. I currently fill and display the dropdown list on the page load. This is working correctly. I am NOT using an Edit Column. I...
5
by: Gil | last post by:
Is there a way to tell if a combbox is in dropdown mode. I tried and if statement combobox.dropdown = true but i get an error. dropwndown function doesnt store if its true or false what i am...
3
by: CSharpguy | last post by:
I'm trying to populate a drop down with dates from a data field in my data base but I want the format like MM/dd/yyyy instead of 1/1/2006 12:00 PM How can I my date to show as 1/1/2006? I'm...
6
by: yasodhai | last post by:
Hi, I used a dropdown control which is binded to a datagrid control. I passed the values to the dropdownlist from the database using a function as follows in the aspx itself. <asp:DropDownList...
2
by: JJ297 | last post by:
I have a dropdown list populated via a database. I edited the dropdown list to have "select a topic" to always appear when the drop down loads. Now if a user selects a dropdown item it goes into...
16
by: AFSSkier | last post by:
I have several cascading ComboBoxes & would like to close Cbo2 & open Cbo1 when there is an error. These CboBoxes are on an Excel spreadsheet, not a UserForm. I have the following code, if the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.