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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:37:51+00:00 2026-06-09T07:37:51+00:00

I have coded a site with a simple horizontal nowrap css with img floated

  • 0

I have coded a site with a simple horizontal “nowrap” css with img floated side by side. I have also hide the scrollbar away. The side scroll can be done by normal vertical mousewheel scrolling (see my project url

Because the images is all in big resolution of 1400x850px, i wanted to create a site that that will scale the images according to the browser size. Currently all the images are in max-width:100%, my aim is to scale them below that percentage when the browser is smaller.

I tried using max-width:100% with both width and height in auto. It not working.

I try using jquery fluid images script, they are not working as well due to “nowrap”

Below are the main code i am using:

#content {
width:5600px;
overflow-x: auto;
white-space: nowrap;
max-width: 100%;
height: auto;
width: auto\9; /* ie8 */
}

#portfolio img {
float:left;
display:inline;
max-width: 100%;
height: auto;
width: auto\9; /* ie8 */
}

This is the link of my project: http://credencepartners.com/demo02/

This is the result i trying to produce (for example please see the comments): http://credencepartners.com/demo02/interface/scene01.jpg

Do i need to implement javascript on this or CSS is possible for this scenario?


UPDATES / 10th Aug 2012

Thanks to Corey for the heads up, i have updated my demo02 link. The problem now is just adding the texts below the images. I tried using a div class to combine the text and images together, the result causes the images to be be non-fluid again. Now i need help making a fluid and re-sizable div tag.


GOALS

Knowing that building a typical horizontal side scrolling website is quite straight forward. The main problem i have is only the fluid resizable images at the top. I am pretty new that fluid/responsive layout and hope the gurus here can enlighten me 🙂

  • 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-09T07:37:52+00:00Added an answer on June 9, 2026 at 7:37 am

    Use this CSS:

    body, html {
        width:100%;
        min-height:100%;
        height:auto !important;
    }
    #content {
        width:100%;
        height:100%;
        position:relative;
    }
    #portfolio {
        width:100%;
        height:100%;
        position:relative;
    }
    #portfolio ul{
        width:100%;
        height:100%;
        display:block;
        white-space:nowrap;
        overflow:auto;
        list-style:none;
        padding:0;
        margin:0;
        text-align:center; /*in case not enough images to create a scroll*/
    }
    #portfolio img{
        width:auto;
        height:100%;
        display:inline-block;
        position:relative;
    }
    

    And lay out your html like this:

    <div id="content">
        <div id="portfolio">
            <ul>
                <img src="src.jpg" />
                <img src="src.jpg" />
                <img src="src.jpg" />
            </ul>
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple php site that I built, but for some reason my
I have a simple site to develop and would like to learn PHP as
I have developed a simple site that fetches tweets from the Twitter public timeline,
I have site that has a Vimeo video where the client wants to hide
I have a simple site consisting of a root site with 2 child sites.
I have quite simple site structure with one mastepage and a bunch of pages.
I have a moderately simple assignment, to create a PHP/PDO site with login functionality
I have a fairly simple site which allow users to connect via facebook. I
I have a simple 'Buy Now' Google Checkout button on my Django site (very
So I have a hand-coded one-pager site with a very long length and dozens

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.