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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:19:20+00:00 2026-05-30T16:19:20+00:00

Ok so I thought I had this fixed using white-space:no-wrap it worked in chrome

  • 0

Ok so I thought I had this fixed using white-space:no-wrap
it worked in chrome but nothing else.

I have something like this:

<div class="outer">
    <ul>

        <li>
          <div class="inner">
            <a href="#"><img src="eg1.jpg" /></a>
            <br />
            EG1 lorem ipsum
           </div>
        </li>

        <li>
          <div class="inner">
            <a href="#"><img src="eg2.jpg" /></a>
            <br />
            EG2 lorem ipsum
           </div>
        </li>
.
.
.
//etc (multiple li's)

</ul>

</div>

excuse the really poor image but this is the efect im aiming for.
enter image description here

I want a single row of ‘items’ if they exceed the space then horizontal scroll bars should appear.

hope that makes sense, how can i achieve this?

  • 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-30T16:19:21+00:00Added an answer on May 30, 2026 at 4:19 pm

    Write like this:

    .outer{
        width:400px;
        overflow:auto;
        white-space:nowrap;
    }
    .outer li{
        display: inline-block;
        *display: inline;/*For IE7*/
        *zoom:1;/*For IE7*/
        vertical-align:top;
        width:40px;
        margin-right:20px;
        background:red;
        white-space:normal;
    }
    

    Check this http://jsfiddle.net/ZrpHv/

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

Sidebar

Related Questions

I thought I had fixed this on Friday through a type correction, but I
I thought I had this figured out but it turns out I'm just deleting
Alright, I thought I had this whole setTimeout thing perfect but I seem to
I thought I had seen a bug report about this on the jQuery site,
This may seem like a programming 101 question and I had thought I knew
I had thought I could enumerate the types using IMetaDataImport.EnumTypeDefs and for each of
I thought I had a pretty good handle on memory management for objective-c, but
can anyone help, i have problem doing a sort, I thought i had it
I have a Java program using a basic Hibernate session factory. I had an
I though I had solved this problem, but it is back: Code generation for

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.