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

  • SEARCH
  • Home
  • 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 414831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T18:19:16+00:00 2026-05-12T18:19:16+00:00

slight problem. I have a 20 x 20px delete icon which I want to

  • 0

slight problem. I have a 20 x 20px delete icon which I want to show overlaying a 112 x 112px image when it is hovered over. The image also has some descriptive text below, so using Safari I pulled it back up using relative positioning. The code I threw together goes something like this:

<html>
<head>
<title>Gallery Test</title>
<style type="text/css">
html
{
    background: #ebebeb;
}
.tsUser img
{
    -webkit-border-radius: 16px 16px;
    -moz-border-radius: 16px 16px;
    -webkit-box-shadow:0 2px 6px #c0c0c0;
    -moz-box-shadow:0 2px 6px #c0c0c0;
    cursor:pointer;
}
.tsUser:hover:after
{
    content: url(editor/icons/deleteIcon.png);
    position: relative;
    top: -155px;
    left: 50px;
    display: block;
}
.tsUser.current:hover:after
{
    content: "";
}
.tsUser
{
    text-align: center;
    width: 150px;
    float: left;
}
.tsUser h3, .tsUser p
{
    margin:5px 0 0 0;
    font-size: 0.8em;
}

.tsUser.current h3
{
    color: red;
}

h1:hover:after
{
    content: " And now the test is complete.";
}
</style>
</head>

<body>

<h1>Testing.</h1>

<div class="tsUser">
<img src="thumb.png" />
<h3>Title</h3>
<p>Description</p>
</div>

<div class="tsUser current">
<img src="thumb2.png" />
<h3>Title 2</h3>
<p>Description 2</p>
</div>

</body>
</html>

Why am I posting all of the source? The crazy thing is that it fails to work in Firefox. Now I don’t know whether it’s the convoluted mess of CSS3 properties, because the :hover:after on the h1 tag works perfectly, and the whole thing works in Safari.

Anyone have a fix?

  • 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-12T18:19:17+00:00Added an answer on May 12, 2026 at 6:19 pm

    I think you should simplify it.

    <div class="tsUser current">
       <img src="thumb2.png" />
       <h3>Title 2</h3>
       <p>Description 2</p>
       <a href="#close"></a>
    </div>
    
    <style>
    .tsUser{text-align: center;width: 150px;float: left; position:relative; /* this is important */}
    .tsUser:hover a.close {display:block}
    .tsUser a.close {content: url(editor/icons/deleteIcon.png);position: absolute;top:10px; right: 10px;display: none; width: 20px; height:20px}
    </style>
    

    by default your close image will be invisible. When you hover the div and the content inside, you will get your “display block” and the option to click it.

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

Sidebar

Related Questions

people. I have slight problem with GD2 text on image. I have everything working
I'm learning Silverlight for WP7 and have come across a slight problem: I want
I have a slight problem with a path: D:\\Music\\DJ Ti%C3%ABsto\\Tiesto\\Adagio For Strings (Spirit of
I have a slight problem... we made a change to our url structure the
I have a slight problem, I am trying to capture the input of two
am new here. i have a slight problem; PLease look at the following code
I've wrote this simple piece of code. And I have a slight problem with
hey everyone, here is the site SEE BELOW I have a slight jquery problem
Got a slight problem trying to have jquery UI and knockout js to cohoperate.
Hopefully someone can help me with a slight problem/confusion I have with Viewpagers and

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.