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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:44:33+00:00 2026-05-23T07:44:33+00:00

It seems that no matter what I do, I can’t get a row of

  • 0

It seems that no matter what I do, I can’t get a row of images to line up horizontally when I zoom into the browser. When I zoom in, the images furthest to the right will drop down to the next row instead of going off screen. I’ve tried float:left;, creating a border, and position:relative; but no luck.

If I use position:absolute; it seems like I have to manually position each image.

My goal is make a sliding image gallery using jquery like the one here: http://www.elated.com/res/File/articles/development/javascript/jquery/elegant-sliding-image-gallery-with-jquery/

I don’t want to copy the code in the link above, because I want to create everything from scratch by understanding the fundamental building blocks.

  • 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-23T07:44:33+00:00Added an answer on May 23, 2026 at 7:44 am

    try wrapping the images in a container div width 100%, with overflow: hidden; this will stop a scroll bar appearing – Then set the white-space property of the container div to nowrap this should force the images to stay on one line but the overflow outside your container area will be hidden allowing you to script the change to the left/right offset or margin – you can make the images display inline, or inline-block

    Nate that if there is also caption text along with these images the white-space property will also affect the text in the captions so you may need to reset any captions to white-space: normal

    sample CSS:

    #container {
    width: 500px;
    height: 300px;
    overflow: hidden;
    border: 3px double #000;
    white-space: nowrap;
    }
    
    #container img {display: inline-block; margin: 0 100px;}
    

    HTML:

    <div id="container">
        <img src="http://placekitten.com/300/300/">
        <img src="http://placekitten.com/300/300/">
        <img src="http://placekitten.com/300/300/">
        <img src="http://placekitten.com/300/300/">
        <img src="http://placekitten.com/300/300/">
        <img src="http://placekitten.com/300/300/">
        <img src="http://placekitten.com/300/300/">
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In emacs 24, the order that color themes are applied seems to matter. This
It seems that Rails and Django can both start up the server binding to
New to the MVC.net scene (and .net for that matter), but seems I find
Seems that even after unchecking the option in the PyDev/Debug preferenecs pane to launch
It seems that when a WPF application starts, nothing has focus. This is really
It seems that in a standard Xcode project, the default target automatically updates the
It seems that using Critical Sections quite a bit in Vista/Windows Server 2008 leads
It seems that MSMQ doesn't use any Database management system to manage messages. How
It seems that there are several really fast prime factorization algorithms around (one that
it seems that we will put source ~/.bashrc in our .bash_profile anyway. So why

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.