Jump to content

css dropdown makes safari crash


lesk

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.