lesk Posted February 18, 2010 Share Posted February 18, 2010 Hi! Ive done this css dropdown, it works in firefox and looks okay but in safari when i hover over (and make the menu drop) the browser crashes. here is the html <ul id="right_menu"> <li><a href="#">Portfolio</a> <ul> <li><a href="html/portratt.php" target="bildplats">Porträtt</a></li> <li><a href="html/brollop.php" target="bildplats">Bröllop</a></li> <li><a href="html/natur.php" target="bildplats">Natur</a></li> </ul> </li> </ul> <ul id="right_menu2"> <li><a href="#">Blogg</a></li> <li><a href="html/kontakt2.php" target="bildplats">Kontakt</a></li> </ul> the "right_menu" is the dropdown the "right_menu2" is the second part with no dropdown. here is the css li ul { display: none; } li:hover > ul { display: block; } ul#nav li ul { display: none; } ul#nav li:hover > ul { display: block; } I pretty much copy paste that code. I have this code for the right_menu and right_menu2 also in the css, dunno if this mess everything up (also pretty much copy pasted) ul#right_menu2 { margin:0px; padding:0px; position:absolute; top:80px; right:41px; width: 220px; height:40px; } ul#right_menu { margin:0px; padding:0px; position:absolute; top:80px; right:270px; width: 100px; height:250px; } ul#right_menu2 li, ul#right_menu li { margin:0px; padding:0px; list-style:none; margin-right:20px; font-size:28px; font-family:Baskerville; display:inline; } ul#right_menu2 li a, ul#right_menu li a { text-decoration:none; color:#666666; } ul#right_menu2 li a:hover, ul#right_menu li a:hover { text-decoration:none; } Help is much appreciated! Quote Link to comment Share on other sites More sharing options...
vinpkl Posted February 18, 2010 Share Posted February 18, 2010 i m using safari 4. it works fine on my computer in safari browser. doesnt crashes vineet Quote Link to comment Share on other sites More sharing options...
lesk Posted February 18, 2010 Author Share Posted February 18, 2010 i m using safari 4. it works fine on my computer in safari browser. doesnt crashes vineet Did you copy paste ? Are you on a pc or mac? For me it crash in safari on a mac(dont know if safari exist for pc), so weird... I hope someone here will know what to do =P Im gonna try clean it up and try make one again from scratch or google one just to try. Quote Link to comment Share on other sites More sharing options...
vinpkl Posted February 18, 2010 Share Posted February 18, 2010 yes i copied and pasted it. i test on pc. i dont have mac. but there's nothing seems in that code that can crash browser. vineet Quote Link to comment Share on other sites More sharing options...
lesk Posted February 18, 2010 Author Share Posted February 18, 2010 yes i copied and pasted it. i test on pc. i dont have mac. but there's nothing seems in that code that can crash browser. vineet Thats weird =/ On the computers that ive used safari on is a mac and they have all crashed. And that dropdown work just like i want and ive been trying to find another one or do one from scratch but i just cant get it to work. You have any css dropdown code to share that works? (beside the one i posted) Quote Link to comment Share on other sites More sharing options...
vinpkl Posted February 18, 2010 Share Posted February 18, 2010 i use chrome menus. i have tested them on pc. try them. This links has examples and code both http://dynamicdrive.com/dynamicindex1/chrome/index.htm vineet Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.