Login or Sign up Help | Site Map
Connecting Tech Pros Worldwide

Safari CSS Dropdown menu problem

Question posted by: drowe (Newbie) on July 2nd, 2008 02:34 AM
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:

Code: ( text )
  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. }
Last edited by eWish : July 2nd, 2008 at 02:46 AM. Reason: Please use code tags
Would you like to answer this question?
Sign up for a free account, or Login (if you're already a member).
Reply
Not the answer you were looking for? Post your question . . .
183,906 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top HTML / CSS Forum Contributors