WordPress.org

Ready to get started?Download WordPress

Forums

Logo shifts when hovered (4 posts)

  1. johnkim1968
    Member
    Posted 3 years ago #

    My logo shifts down when I hover over it. Can't figure it out.... anyone have an idea? Very frustrating...

    My site... http://www.TumblerTrades.com

    Thanks,,,

  2. Spencer Hill
    Member
    Posted 3 years ago #

    Some browsers render borders as additional width to an element. So if the border is 1px wide and the user hovers over it then it pushes everything below it 1px away. A solution would be to add a white 1px border on a {} or to increase the height of a {} 1px more than the height of a:hover {}

  3. johnkim1968
    Member
    Posted 3 years ago #

    Thank you, Thank you, Thank you... I've spent 3 days wondering how to fix that!!! I hope Karma goes good your way for answering this so correctly!!!

  4. Spencer Hill
    Member
    Posted 3 years ago #

    Haha, you're welcome.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.