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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:03:45+00:00 2026-05-23T21:03:45+00:00

I’m making some stuff using jQuery. Sometimes I have, for example, a bunch of

  • 0

I’m making some stuff using jQuery. Sometimes I have, for example, a bunch of images in a list. This is a horizontal list (so every image is displayed from left to right). This list is so big that only 9 of the 30 images are displayed in the page (depending on youre screen resolution). So i’m using jQuery to slide from left to right (if youre mouse is on de left side of the screen, it scrolls to the left and vice versa).

To get this working, my list is wrapped in a div. This div uses a width of 999999px. So the images can go up to a width of 999999px until a next row of images is displayed. Because the list automatically lists everything horizontal until the next image doesn’t fit the page anymore, this next image is then displayed in a new row. So what I get is a 3×3 ‘table’ when i’m not using the extra div. When i’m putting a div around the whole thing with a width of 999999px, the list is horizontal up to 999999px and after that it makes a new row.

My question is: Is there an easier way to perform this?

Can I set my width to: width:infinite; or something like that? Or am I doing this whole thing wrong?

Hopefully I’ve made my self clear in my average english. Thanks in advance!

HTML:

<div id="images">

    <ul id="listimages">  
                    <li><img src="img/set1/1.jpg"/></li>
                    <li><img src="img/set1/2.jpg"/></li>
                    <li><img src="img/set1/3.jpg"/></li>
                    <li><img src="img/set1/4.jpg"/></li>
                    <li><img src="img/set1/5.jpg"/></li>
                    <li><img src="img/set1/6.jpg"/></li>
                    <li><img src="img/set1/7.jpg"/></li>
                    <li><img src="img/set1/8.jpg"/></li>
                    <li><img src="img/set1/9.jpg"/></li>    
                    <li><img src="img/set1/10.jpg"/></li>
                    <li><img src="img/set1/11.jpg"/></li>
                    <li><img src="img/set1/12.jpg"/></li>
    </ul> 
</div>

CSS:

  body {
background: black;
color:white;
}
#images{
float:left;
}
ul#listimages{
width:100%;
list-style-type:none;
overflow: hidden;
}
ul#listimages li {
display: block; 
float: left;
}
 ul#listimages img {
height:200px;
width:400px;
}
  • 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-23T21:03:46+00:00Added an answer on May 23, 2026 at 9:03 pm

    That is the simplest way to do it.

    Note that some browsers (read: Chrome) have trouble with enormously wide elements; you should probably set any elements that aren’t visible to display: none.

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

Sidebar

Related Questions

this is what i have right now Drawing an RSS feed into the php,
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have a text area in my form which accepts all possible characters from
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

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.