Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

CSS hover on activity-items ? (4 posts)

Started 2 years ago by: abcde666

  • Profile picture of abcde666 abcde666 said 2 years ago:

    how do I change the CSS in order to achieve a hover-effect on each single activity-item.
    So that each activity-item will get a grey background-color when hovering over it.

    Very similar to each single post at Youtube.com ?

    Many thanks,

  • Profile picture of Mike Henderson Mike Henderson said 2 years ago:

    .activity-list li:hover{ background: #EAEAEA; }

  • Profile picture of abcde666 abcde666 said 2 years ago:

    unfortunately, when using this code, then it is also changing the bg-color of the activity-comments.
    Is there a way to keep the bg-color of the activity-comments as is ?

    Many thanks,

  • Profile picture of dre1080 dre1080 said 2 years ago:

    div.activity-comments ul li:hover { background: #— !important; } replace — with what you want the color to stay as

    best solution, use firebug add-on with firefox, to find ids and classes of elements n ul figure all this out..