Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS hover problem

  • This topic is empty.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #34099

    im working on the navigation.. everything seems to be working fine.. but if you take the cursor towards the links.. it starts to flicker between the normal and hover state…

    http://uncutbeatz.com/abz/

    #menu {
    float: right;
    list-style: none;
    margin: 60px 0 0 0;
    padding: 0;
    }

    #menu li {
    float: left;
    font: 67.5% "Lucida Sans Unicode", "Bitstream Vera Sans", "Trebuchet Unicode MS", "Lucida Grande", Verdana, Helvetica, sans-serif;
    margin: 0;
    padding: 12px 12px 12px 12px;
    }

    #menu a {
    color: #ffffff;
    display: block;
    margin: 0;
    text-decoration: none;
    -moz-transition:margin-top;
    -moz-transition-timing-function: ease-in;
    -moz-transition-duration: 250ms;
    }

    #menu a:hover {
    margin-top: -5px;
    color: #c3ddfa;
    }

    anyone have any idea why?

    #85769
    TheDoc
    Member

    Because you’re shifting the link up but not expanding its height would be my guess.

    #85789

    Use padding instead of margin. It will have to be padding-bottom as you cannot have negative padding.

    #85824
    wolfcry911
    Participant

    I would also move the padding from the li to the anchor

    #85842

    http://jsfiddle.net/qaey6/

    iv tried everything mentioned above and its still not working smoothly

    #85843
    #85844
    djpic
    Participant

    Seems to be working for me, what browser are you using? I used both safari and firefox, both appeared fine.

    #85851

    @djpic the issue was the link jittering when hovering if the mouse was towards the bottom. It is fixed in my fiddle with the use of padding.

    #85853

    @joshuanhibbert Thnx alot :)

Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘CSS’ is closed to new topics and replies.