Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    How can I modify this style so that when you hover over a link, the white background fills out the ENTIRE background (the "box" between the red link borders) behind the <li> link? I don't get this because with the main .navlinks style, the background-color: #F3F3F3 DOES fill out the entire area ("box"), but the .navlinks a:hover background-color: #FFFFFF; only produces a TEXT background color and doesn't fill out the "box". I think I have to get a bit more granular and add another style to make this work correctly, but I don't know how to do it.

    http://www.freedommd.com/CCHITnav.html

    Thanks for any help.

    J
    • CommentAuthordavist11
    • CommentTimeMar 23rd 2009
     permalink
    display: block;

    And then add a width to have it work in IE
  2.  permalink
    Davis,

    I assume you mean add display: block and width to the a:hover style, which I did (click the updated page link above) but that only gives me a white background extended to the right .navcell border, and still at the same line height as the text line height. And when I added a width (again, assuming to the a:hover style) it really screwed things up. (?)
  3.  permalink
    Oh wait, I can see the white doesn't fill out because of the padding applied...but how do I get around THAT?
    • CommentAuthordavist11
    • CommentTimeMar 23rd 2009
     permalink
    Add the padding on the anchor and not the list item. Also, I would add display: block to the anchor, and not just a:hover
  4.  permalink
    Got it, beautiful! Thank you so much. : )
Add your comments
    Username Password
  • Format comments as (Help)