Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6192693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:59:15+00:00 2026-05-24T02:59:15+00:00

I have a newsfeed which is obviously organized by an . When the user

  • 0

I have a newsfeed which is obviously organized by an . When the user hovers over each of the items, the background is highlighted. I’d also like to have a small “x” in the top right hand corner of each item, only shown when hovered. This “x” would be a delete button to remove that post.

Right now I just have some basic html stating: <div class="hide-button"><a href="#">x</a></div>

I know that I don’t want the “x” displayed in the html, but rather have it in the CSS. So I have the <li> css below for hovering, as well as the CSS for the hide button. I’d like to know the best method to integrate the hide button div into the <li>

.hide-button {
    float: right;
    margin-top: -13px;
    font-size: 11px;
    font-family: helvetica;
    color: gray;
}

.hide-button a{
    text-decoration: none;
    color:gray;
}

.hide-button a:hover {
    text-decoration: underline;
    color:gray;
}

and the list:

.newsfeedlist li {
    background: white;
    border-bottom: 1px solid #E4E4E4;
    padding: 12px 0px 12px 0px;
    overflow: hidden;
}

.newsfeedlist li:hover {
    background-color: #F3F3F3;
}

Thank you so much!!!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:59:16+00:00Added an answer on May 24, 2026 at 2:59 am

    Presuming your delete buttons are inside another container you could do something like

    .hide-button {
        float: right;
        margin-top: -13px;
        font-size: 11px;
        font-family: helvetica;
        color: tray;
        display: none;
    }
    
    ... the other bits of CSS ...
    
    .newsfeedlist li:hover .hide-button {
        display: block;
    }
    

    Modifying the close button to be hidden by default and then when hovering on a list item you set the display back again on the close button.

    Hope this makes sense

    Tim

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a couple of embedded YouTube videos which I have added Like buttons
I'm working on a Newsfeed action. I have active friendships and i would like
I have a news feed where items in the feed are created from JSON
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Given you have to implement a news feed like the one seen in social
I have a newsfeed with comments. I'm storing comments in MongoDB. Newsfeed possibly could
I have a page with an IFRAME. The IFRAME consists of newsfeed links to
I have to fetch all data which is on News Feeds (public wall). What
I have an activity in my app which displays rss feeds and next to
In my current project there is a Form class which looks like this: public

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.