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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:14:42+00:00 2026-06-08T15:14:42+00:00

I have a thumbnail image you can click to open a full size image

  • 0

I have a thumbnail image you can click to open a full size image as a pop up div.

I want the close button for that pop up to be in the top right corner on the border but not on the image itself. I’ve attached a screenshot example from another site of what I am trying to do, as well as an example of what mine looks like.

What I want:

enter image description here

What I have:

enter image description here

Here is my HTML:

<div id="blanket" style="display:none;"></div>
    <div id="popUpDiv" style="display:none;">
        <a href="#" onclick="popup('popUpDiv')"><img src="images/close.png" align=right></a><img src="images/largeimg.jpg" width=551 height=750>
    </div>  
  <h1><a href="#" onclick="popup('popUpDiv')">Click Here To Open The Pop Up</a></h1>
</div>

And my CSS:

#blanket {
   background-color:#111;
   opacity: 0.65;
   position:absolute;
   z-index: 9001; 
   top:0px;
   left:0px;
   width:100%;
}

#popUpDiv {
    position:absolute;
    background-color:white;
    width:551px;
    height:779px;
border:10px solid white;
    z-index: 9002; 
}

How can I move the close button so that it is on the border and not causing that extra white space due to the button image height?

  • 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-06-08T15:14:43+00:00Added an answer on June 8, 2026 at 3:14 pm

    Here is the working fiddle

    CSS

    #blanket {
       background-color:#111;
       opacity: 0.65;
       position:fixed;
       z-index: 9001; 
       top:0px;
       left:0px;
       width:100%;
        height:100%;
    }
    
    #popUpDiv {
        position:relative;
        background-color:white;
        width:551px;
        margin:10% auto 0 auto;
        height:259px;
    border:10px solid white;
        z-index: 9002; 
    
    }
    .close{position:absolute; right:-25px; top:-25px;}
    

    ​

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

Sidebar

Related Questions

I have a thumbnail image that when you click it changes a larger image
I have an image thumbnail, encoded as base64, that I want to use as
I want to display full screen of a image when i click on thumbnail
I have several divs with class image and several with class thumbnail (both can
I have a thumbnail image inside a div. I use another image as the
I have photo gallery code that does image re-sizing and thumbnail creation. I use
I have some thumbnails that slideToggle a hidden div. I only want one to
I have a feature where a user can click a video thumbnail and my
I have seen a few sites that have a thumbnail and when you click
Can we create a popup within a popup. I have a thumbnail image 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.