473,403 Members | 2,284 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,403 software developers and data experts.

Safari CSS Dropdown menu problem

1
I have changed my menus to be pure CSS and works fine in all browsers except Safari. The menus display but the second level drop downs dont work.

The CSS is:

Expand|Select|Wrap|Line Numbers
  1. /* CSS for top level bar menu */
  2. div#sitenav {
  3.     background-image: url('background_light.gif');
  4. }
  5. div#sitenav li:hover ul {
  6.     display: block;
  7.     background: blue;
  8. }
  9. #sitenavigation {
  10.     height: 30px;
  11.     font: 12px Arial;
  12.     font-weight: bold;
  13.     list-style-type: none;
  14.     padding-left: 10px;
  15.     margin-bottom: 0;
  16. }
  17. /* main menu items */
  18. #sitenavigation li {
  19.     margin-bottom: 0;
  20.     list-style-type: none;
  21.     list-style-image: none;
  22.     float: left;
  23.     border-right : 1px solid #9ACCFC;
  24.     padding: 7px 10px 7px 10px;
  25. }
  26. /* link within main menu */
  27. #sitenavigation li a {
  28.     color : white;
  29.     text-decoration : none;
  30.     display : block;
  31. }
  32. ul#sitenavigation li:hover {
  33.     display: block;
  34.     background-image: url('background_dark.gif');
  35. }
  36. /* sub item list */
  37. #sitenavigation li ul {
  38.     width: 155px;
  39.     border-top: 1px solid #9ACCFC;
  40.     z-index : 1000;
  41.     display: none;
  42.     position: absolute;
  43.     padding : 0;
  44.     margin-top: 7px;
  45.     margin-left: -10px;
  46. }
  47. #sitenavigation li ul li {
  48.     float : none;
  49.     border : none;
  50.     border-bottom : 1px solid #9ACCFC;
  51.     margin: 0;
  52.     background-image: url('background_light.gif');
  53.     padding: 7px 10px 7px 10px;
  54. }
  55. /* hover over sub-item */
  56. #sitenavigation li ul li a:hover {
  57.     background-image: url('background_dark.gif');
  58. }
  59. /* last item */
  60. #sitenavigation li.end, ul#sitenavigation li.end:hover {
  61.     float: none;
  62.     background-image: url('background_light.gif');
  63.     border-right : none;
  64. }
Jul 2 '08 #1
0 2923

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

Similar topics

4
by: Adam | last post by:
Hi all, OK, I'm baffled. I have a menu in a table which I've just realized is "breaking apart" in Safari: http://www.fitcityforwomen.com/00-intro/index.html Yet when I plunk the menu by...
5
by: Sven | last post by:
I would like to disable the ability of the user hold control and click and get the dropdown menu. I am ultimately discouraging users from easily getting a copy of the image. I was able to do this...
4
by: dpomt | last post by:
Hello, I am using the ASP.NET menu control and I have two issues when the page containing the menu is displayed in Safari on Mac OS X: 1) The menu is not dynamic. Why (it seems that Safari is...
5
by: Bill Cohagan | last post by:
I'm having some serious difficulties with my ASP.Net 2.0 app rendering in Safari 2.0.3. The most immediate problem is that the menu control doesn't seem to work at all, particularly the use of...
1
by: Mark Rae | last post by:
Hi, Sorry for the repost - my ISP is having huge usenet problems at the moment... Following on with the problems of asp:Menu controls and Safari, I found the following article:...
1
by: aghymike | last post by:
Hello, this is my first post. www.michaelaghy.com I recently designed my website using Dreamweaver 8 and some Fireworks. I tested the site with Firefox and IE and it works fine but (at a...
2
by: William Youngman | last post by:
We are developing an application that presents data to the user in a gridview and we are using the dropdown extender to give the user a SharePoint 2007 type dropdown menu attached to the cells of a...
1
by: embolden | last post by:
I am having a problem with Safari and my dropdown menu. If you roll over the menu and then roll out, some of the menu remains giving the appearance of floating boxes. I have isolated the issue in...
19
by: Jim | last post by:
Hi, I have two questions/problems pertaining to CSS horizontal dropdown menus and am hoping that someone here can help me out. (1) I'm having a problem centering the menu. I picked up the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
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.