Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS - li background
    primarykey
    data
    text
    <p>I want to code this so the active and hover li's appear over the normal li. But what happens is the hover and active li's appear inside the normal li. When I add padding (to hover and active li's) in an attempt to duplicate the size of the normal li, the normal li remains visible and simply expands by the increase padding of the hover and active li and not covered as I need it to be.</p> <p>Here is my CSS:</p> <p>/<strong><em>*</em>**<em>*</em>**<em>*</em>****</strong><em>HORIZONTAL NAVS</em><strong><em>*</em>**<em>*</em>**<em>*</em>****</strong>/</p> <pre><code>.menu-horizontal { margin: 3px 2px 0.75em; } .menu-horizontal ul.top-level { background-color: #FFFFFF; clear: none; list-style-type: none; margin: 0; padding: 0; } .menu-horizontal ul.top-level li { background: #FEAB27; border-radius: 7px 7px 0px 0px; display: inline-block; height: 28px; padding: 0 25px; } .menu-horizontal ul.top-level { display: inline-block; float: left; height: 23px; margin-left: 173px; padding-top: 5px; text-align: center; text-transform: none; } .menu-horizontal ul.top-level li a { background: none repeat scroll 0 0 transparent; color: #000000; display: inline-block; line-height: 24px; text-decoration: none; font-family: Verdana,'Magra','Gafata',sans-serif; font-size: 102%; font-weight: bold; } .menu-horizontal ul.top-level li.selected a, .menu-horizontal ul.top-level li a:hover { background: #FDCC00; border-radius: 7px 7px 7px 7px; text-decoration: underline; } .menu-horizontal li ul.second-level { display: block; left: -999em; margin: -1000px 0 0; overflow: visible; padding: 0 0 9px; position: absolute; text-align: left; } .menu-horizontal li:hover ul.second-level, .menu-horizontal li.hover ul.second-level { left: auto; } </code></pre> <p>Thanks!</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.
 

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