WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Padding on text hover... where from? (8 posts)

  1. Tokitoast
    Member
    Posted 1 year ago #

    Hi!

    On my sidebar, I use a widget "WordPress.com Popular Post". The problem is that the titles of posts (which are links) are having a padding-left: 5px, whenever I put my mouse over.

    I checked my .css file and for the sidebar I only have

    .sidebar-box{margin-bottom:10px;padding:20px;}
    .sidebar-box h4{ margin-bottom: 20px; padding-bottom: 5px; font-size:16px; font-weight:bold; border-bottom: 1px solid #EEE;}
    .sidebar-box ul{list-style:none; margin: 0 0 20px;}
    .sidebar-box li{margin-bottom: 10px; clear: both;}
    .sidebar-box li a{}
    .sidebar-box li a:hover{}

    I really don't know where this comes from. Any idea?

    Tell me what further information you need.

    Thanks in advance.

    Best regards.

    Tokitoast

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

  3. Tokitoast
    Member
    Posted 1 year ago #

    Already have. When i go over, the element style padding (previously displaying padding: 0px) changes to 5px.

    I guess it must be something with my theme but can't find where.
    Is it possible that this would be some kind of "coding" in a PHP file?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Firebug will tell where this padding is being added from.

  5. Tokitoast
    Member
    Posted 1 year ago #

    Thanks for your advice esmi. Like you said I've checked with Firebug.

    It seems like it comes from "@element.style". Couldn't find it in my css file. Do you know where this can be located?

    Could this be a property from the widget I use?

    Thanks for your help :)

  6. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    It sounds like it's being added via jQuery - possibly via a plugin or your theme.

  7. Tokitoast
    Member
    Posted 1 year ago #

    Ok probably from my theme because as far as I remember this is happening somewhere else. I'll check this tomorrow. Thanks

  8. Tokitoast
    Member
    Posted 1 year ago #

    You were totally right!

    Fixed and resolved. Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Topic