Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Dropdown Twitching
    primarykey
    data
    text
    <p>I am developing a website, and using a traditional technique of CSS-only dropdown-menu, but integrating CSS3 attributes. That being said, the client wants specific menu items that push the bounds of the <li>s that contain them. This is causing twitching when transitioning between menus.</p> <p>The CSS looks like this:</p> <pre><code>#nav{ background-image:url(../images/nav-bg.png); height: 32px; width: 100%; padding-right:8px; background-repeat:repeat-x; z-index:3; } #drop { list-style-type: none; height: 32px; padding: 0; margin: 0 auto; width: 500px; vertical-align: baseline; color: #fbf9ec; } #drop li { float: left; position: relative; padding: 0; line-height: 32px; background: #3a7c38 url(../images/nav-bg.png) repeat-x 0 0;} #drop li:hover { background-position: 0 -40px;} #drop li a { display: block; padding: 0 15px; color: #fbf9ec; text-decoration: none; } #drop li a:hover { color: #fbf9ec; } #drop li ul { opacity: 0; position: absolute; left: 0; width: 14em; background: #3a7c38; list-style-type: none; padding: 0; margin: 0; z-index: 2; box-shadow: 4px 4px 7px #888;} #drop li:hover ul { opacity: 1; } #drop li ul li { float: none; position: static; height: 0; line-height: 0; background: none; } #drop li:hover ul li { height: 30px; line-height: 30px; } #drop li ul li a { background: #3a7c38; } #drop li ul li a:hover { background: #254F24; } </code></pre> <p>The live example can be found at:</p> <p>MasonandLauren.com/flotec/secondary.html</p> <p>(Don't worry - The design is based on customer request, not my own)</p> <p>Any help to eliminate the twitching would be appreciated!</p> <p>Thanks! ~Mason</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload