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 5997039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T00:12:22+00:00 2026-05-23T00:12:22+00:00

I am developing a system, where each user can send personal messages to other

  • 0

I am developing a system, where each user can send personal messages to other users of the system. He can send the same message to any number of users at a time. When he selects more than one user as the target, their profile pictures are displayed below.

What I need is, whenever the user hovers his mouse over one of these pictures, I want a small cross mark to appear at the right hand top corner of the picture and when the user clicks that cross mark the user should be deleted from the target list (or any other action – doesn’t matter).

How do I achieve this? In essence I need another picture to be displayed above the profile picture (right hand top corner) and have an onclick event for that. How can this be achieved? I do not want to use absolute positioning.

  • 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-23T00:12:23+00:00Added an answer on May 23, 2026 at 12:12 am

    @thirtydot I dont want to use absolute
    positioning because i have many such
    pictures and i may have them at many
    different places on the site using
    absolute positioning would mean using
    javascript or jquery to calculate the
    current position of the hovered
    element and using that position to
    assign the position of the new image
    and so on. I think this is all quite
    cumbersome. Isn’t there a simpler way?

    Your explanation of why you don’t want to use absolute positioning now makes perfect sense.

    I’m going to show you why it’s actually “the perfect tool for the job”.

    You’re unaware of the fact that you can use position: relative on a parent of the element with position: absolute to make the absolute element offset from the parent instead of from the page, as explained here:

    http://css-tricks.com/absolute-positioning-inside-relative-positioning/

    So, a good solution to your problem is something like this: http://jsfiddle.net/CKJQ3/

    And another version with minimal JavaScript: http://jsfiddle.net/CKJQ3/1/

    CSS:

    .imageContainer {
        position: relative;
        border: 1px dashed #444;
        float: left
    }
    .imageContainer img {
        display: block
    }
    .imageContainer .closeButton {
        position: absolute;
        top: -5px;
        right: -5px;
        display: none
    }
    .imageContainer:hover .closeButton {
        display: block
    }
    

    HTML:

    <div class="imageContainer">
        <img src="http://www.gravatar.com/avatar/74c04b6c96836f044ed927a5db4dc92b?s=128&d=identicon&r=PG" />
        <a href="#" class="closeButton"><img src="http://dummyimage.com/16x16/f0f/fff&text=+" /></a>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing a PHP-based login system. Each user has an ID(a number) and
I'm developing a messaging system on a website. When user sends a message, she
I am developing a system where I wish messages to be sent to users
I am currently developing some user controls so that I can use them at
I am developing an application suite that consists of several applications which user can
I am developing a user feedback system using ASP.NET and C#. I have multiple
I'm developing a service in which users can upload images and save them in
I'm developing a rather large XML Schema to integrate multiple disparate systems. Each system
I am developing a content management system in asp.net where the users of the
I am developing a system as an aid to musicians performing transcription. The aim

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.