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 )
/* CSS for top level bar menu */ div#sitenav { background-image: url('background_light.gif'); } div#sitenav li:hover ul { display: block; background: blue; } #sitenavigation { height: 30px; font: 12px Arial; font-weight: bold; list-style-type: none; padding-left: 10px; margin-bottom: 0; } /* main menu items */ #sitenavigation li { margin-bottom: 0; list-style-type: none; list-style-image: none; float: left; border-right : 1px solid #9ACCFC; padding: 7px 10px 7px 10px; } /* link within main menu */ #sitenavigation li a { color : white; text-decoration : none; display : block; } ul#sitenavigation li:hover { display: block; background-image: url('background_dark.gif'); } /* sub item list */ #sitenavigation li ul { width: 155px; border-top: 1px solid #9ACCFC; z-index : 1000; display: none; position: absolute; padding : 0; margin-top: 7px; margin-left: -10px; } #sitenavigation li ul li { float : none; border : none; border-bottom : 1px solid #9ACCFC; margin: 0; background-image: url('background_light.gif'); padding: 7px 10px 7px 10px; } /* hover over sub-item */ #sitenavigation li ul li a:hover { background-image: url('background_dark.gif'); } /* last item */ #sitenavigation li.end, ul#sitenavigation li.end:hover { float: none; background-image: url('background_light.gif'); border-right : none; }
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).
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
|