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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:09:14+00:00 2026-05-23T08:09:14+00:00

I need a simple image gallery so I decided to build it entirly on

  • 0

I need a simple image gallery so I decided to build it entirly on CSS, and tried to find something appropriate in the net.I found something very close to what I want, here are the applied CSS styles:

<html>
<head>
<title>Gallery</title>
<style type="text/css">
body {
    margin: 0 auto;
    padding: 0;
    width: 500px;
    color: #000000;
    font: normal 80%/120% Georgia, "Times New Roman", Times, serif;
}
a
{
    color: #000000;
}

.gallery {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gallery li {
    margin: 10px;
    padding: 0;
    float: left;
    position: relative;
    width: 120px;
    height: 100px;
}
.gallery img {
    background: #fff;
    border: solid 1px #ccc;
    padding: 4px;
    width: 110;
    height: 90;
}
.gallery span {
    width: 77px;
    height: 27px;
    display: block;
    position: absolute;
    top: -12px;
    left: 50px;
    background: url(images/tape.png) no-repeat;
}
.gallery a:hover img {border: 1px solid #0000ff; width:400; height:300; overflow: auto}
</style>
</head>

<body>
<ul class="gallery">
    <li><a href="#"><span></span><img src="image/8.jpg" alt="image" /></a></li>
    <li><a href="#"><span></span><img src="image/9.jpg" alt="image" /></a></li>
    <li><a href="#"><span></span><img src="image/4.jpg" alt="image" /></a></li>
    <li><a href="#"><span></span><img src="image/7.jpg" alt="image" /></a></li>
    <li><a href="#"><span></span><img src="image/5.jpg" alt="image" /></a></li>
    <li><a href="#"><span></span><img src="image/6.jpg" alt="image" /></a></li>
    <li><a href="#"><span></span><img src="image/3.jpg" alt="image" /></a></li>
    <li><a href="#"><span></span><img src="image/1.jpg" alt="image" /></a></li>
    <li><a href="#"><span></span><img src="image/2.jpg" alt="image" /></a></li>
</ul>
</body>
</html>

In fact I don’t even know why i need .gallery span{} (maybe some tips here) But the main problem is this:
Pic1:

enter image description here

This is how my gallery looks and I want it to look just like that, but when i a:hover and enlarge the image here’s what happen

Pic2:

enter image description here

and to make it clear one more picture

Pic3:

enter image description here

What I need, and want to accomplish is all enlarged images to appear like this:

Pic4:

enter image description here

but obviously in front of the thumbnails.Any help please.

Thanks

Leron

  • 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-23T08:09:15+00:00Added an answer on May 23, 2026 at 8:09 am

    Add position: relative; to your body style, remove position: relative; from .gallery li, and add position: absolute; top: 0; left: 0; to .gallery a:hover img.

    Your final CSS being:

        <style type="text/css">
        body {
            margin: 0 auto;
            padding: 0;
            width: 500px;
            color: #000000;
            font: normal 80%/120% Georgia, "Times New Roman", Times, serif;
            position: relative;
        }
        a
        {
            color: #000000;
        }
    
        .gallery {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        .gallery li {
            margin: 10px;
            padding: 0;
            float: left;
            width: 120px;
            height: 100px;
        }
        .gallery img {
            background: #fff;
            border: solid 1px #ccc;
            padding: 4px;
            width: 110;
            height: 90;
        }
        .gallery span {
            width: 77px;
            height: 27px;
            display: block;
            position: absolute;
            top: -12px;
            left: 50px;
            background: url(images/tape.png) no-repeat;
        }
        .gallery a:hover img {border: 1px solid #0000ff; width:400; height:300; overflow: auto; position: absolute; top: 0; left: 0;}
        </style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need some jQuery plugin, tutorial or guidelines to create simple image gallery which
I am in need of a very simple c# image resizer. By simple, I
I'm looking for a simple image gallery for a client of mine. I need
I need some jquery help. I have a simple image gallery and I'd like
I want to build a simple image gallery with jQuery. I have a lot
I need to load an image from a web in a simple Java stand
Situation: I have a simple XML document that contains image information. I need to
How can I simple add image to selectbox? I found few jQuery plugins, but
http://www.gallyapp.com/tf_themes/chalong_wp/?gallery=this-is-gallery-build-from-custom-post-type-with-image-uploader-backend I want to do this effect for my images with jQuery move them
I am making an image gallery, and I need to display images in a

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.