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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:05:46+00:00 2026-06-16T21:05:46+00:00

Need help getting the list within the wrapper div. Also the images that I

  • 0

Need help getting the list within the wrapper div. Also the images that I have as “items” are slightly different widths, either way I feel there is a solution, however, I just can’t seem to find it. If anyone knows of a simpler code for fade hover effect maybe that’s easiest. The jquery is pretty good here just having problems positioning. Thanks!

Here’s what it looks like thus far –
http://marisareviewsfilms.com/demo

Here’s how I want it to look – http://marisareviewsfilms.com/lisa#

My CSS (the borders are just to guide me for now):

#wrapper {
width: 827px;
height: 577px;
padding: 0px;
margin-top: 50px;
margin-right: auto;
margin-left: auto;
border: 1px solid blue;
}

.gallery li {
float: left;
margin-left: 0px;
margin-right:0px;
margin-top: 0px;
margin-bottom: 0px;
list-style-type: none;
height: 577px;
display: ;
width: 129px;
position: relative;
border: 1px solid green;
}

img.grey {
position: absolute;
left: 0;
top: 0;
z-index: 10;
}

img.color {
position: absolute;
left: 0; 
top: 0;
}
  • 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-16T21:05:47+00:00Added an answer on June 16, 2026 at 9:05 pm

    Your code seems to be fine. However, the browser defaults are messing with the positioning.

    Just change the following

    1. At the beginning of the css apply a reset css.
    2. Add a clearfix class to the ul.gallery

    Update

    The image slices you are using are 131px, except the first, and last one (which are 148px, 151px respectively).
    So change this in the CSS :

    .gallery li {
        width: 131px;
    }
    .gallery li:first-child {
        width: 148px;
    }
    .gallery li:last-child {
        width: 151px;
    }
    

    However, this will work on all modern browsers.
    In case you want to support IE7,8,
    add classes to the first and last li, and then put the css accordingly (as above).

    <li class="first">
    ...
    <li class="last">
    

    NOTE : Do remove the green/blue borders, since they would take 1px width each.

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

Sidebar

Related Questions

I need help getting git extensions to run with msysgit. I have had bad
I need help getting my java program ready for release. I have a program
Basically I have a list of environmental variables that I need to set from
I need help working with a large list of sibling elements with different class
I need some help getting a serialized <ul> list submitted via a AJAX post
I need some help in implementing jQuery. I have a dropdown list with the
EDIT: I believe I need help getting the selected element in the list I
Need help getting Ember-Data working with Zend Rest. At first, I'm familiar with Zend
I need help getting CommonJS working on Java 7 and Rhino 1.7R3. Rhino 1.7R3
Hi need help getting repeated value from give array,below is the code which im

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.