Treehouse: Grow your CSS skills. Land your dream job.

jQuery drop down shift 1 pixel

  • # May 30, 2012 at 3:06 am

    If you roll over the About Us button the links in the drop down menu shift a pixel on the hover. I’m think some kind of of child-first is needed but I’ve spent hours fiddling with this. This is a jQuery WordPress navigation plugin.

    # May 30, 2012 at 9:15 am

    From what I can see, for those submenus, you give them an additional border on top and bottom once the mouse is on it. But in order to not make it shift, that border should also be there when you don’t hover on it, so I would give it a white border in its normal state and a grey one on mouseover.

    # May 30, 2012 at 12:08 pm

    I added a border: solid 1px transparent to the a class (line 31) and it worked.Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.