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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T06:54:01+00:00 2026-06-06T06:54:01+00:00

This is my second attempt at this question . I made a mess of

  • 0

This is my second attempt at this question. I made a mess of the first attempt and have requested that it be deleted.

So, I basically have a lot of small item divs 100px wide which I want on a single horizontal line (they must not wrap to the next line ever), contained within another div container 300px.

I need the container div to have a horizontal scroll bar, so I can scroll left and right, without allowing the smaller item divs to wrap to the line(s) below.

Keeping in mind that i will not know how many item divs the end result will contain in the container div as they will be generated dynamically.

Is it possible to do this in IE8?

In this jsfiddle example, the only problem seems to be that the items are wrapping to the lines below. I think if they stay on the single top horizontal line, the horizontal scrollbar will work.

  • 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-06T06:54:02+00:00Added an answer on June 6, 2026 at 6:54 am

    Instead of float: left, use display: inline-block on .item. Then, add white-space: nowrap to .container to prevent wrapping.

    This will work in IE7/8 and all modern browsers.

    See: http://jsfiddle.net/thirtydot/M2sgv/22/

    .container {
        width: 300px;
        overflow-x: scroll;
        white-space: nowrap;
    }
    
    .item {
        width: 100px;
        display: inline-block;
        *display: inline; /* for ie7 */
        zoom: 1;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my second question on Bamboo ( My First One ). My understanding
I have the following paragraphs: <p>This is a first paragraph.</p> <p>This is a second</p>
I have edited and simplified this question a lot. If I have this method
Second attempt at this question (the initial code wasn't enough to highlight the issue)
I have a question that is similar to this SO question , but slightly
I have a question that is similar to this SO question , but slightly
First attempt It's difficult to make this question pithy, but to provide a minimal
(Hope this doesn't get duplicated; second attempt at submitting this question) I'm working on
this is the second game that I'm having issues with in the same area...
I hope it's the heat, this is the second question today and it's one

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.