473,804 Members | 3,396 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Safari CSS Dropdown menu problem

1 New Member
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 2946

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

Similar topics

4
1897
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 itself into its own "test" page, it holds together fine:
5
2751
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 and disable dragging on all browsers I have tested except Safari (Mac). For a copy of the javascript that has worked so far on everything minus Safari please go here: URL: http://www.nomorepasting.com/paste.php?pasteID=24898
4
1521
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 treated as downlevel browser)? 2) I run into the "DynamicMenuStyle" bug (see http://weblogs.asp.net/dannychen/archive/2005/11/21/431121.aspx) Any ideas when this bug will be fixed?
5
2623
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 dynamic levels. I've Googled around a bit and determined that the problem is not so much with Safari as it is with ASP.Net inaccurately determining the browser capabilites for that browser. In the 2.0 Framework it appears that browser caps are...
1
1258
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: http://weblogs.asp.net/dannychen/archive/2005/11/21/431121.aspx Very interesting - I'll be examining some of the suggested workarounds
1
2593
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 friend’s house) when I tested it on a Mac using Safari, it doesn’t look right. The top frame with the picture is visible but the bottom frame that contains the menu is not. I am guessing the problem is using frames, but I really am not sure. ...
2
10300
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 given column. We are also using another dropdown menu that the user can use to select data using another quesry using the SelectedIndex change method. Upon initial page load everything works fine and the user is presented with a SharePoint type menu....
1
2140
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 that I can fix the problem by getting rid of the following 4 divs: #mainav #mast #maininfo #subinfo2 However, I need all of these to form the structure of the page. Any ideas? ...
19
3701
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 code for this from a tutorial but that menu was flush-left justified. Not what I want. Subsequent searches on google on how to center yielded a
0
9705
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9575
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10564
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10308
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9134
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6846
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3806
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2981
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.