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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:24:25+00:00 2026-06-01T10:24:25+00:00

I am looking into a basic DOM layout that lets me put a couple

  • 0

I am looking into a basic DOM layout that lets me put a couple containers that are set width:100%; height:100%; in a row so I can let the user scroll between them:

example

So I have a FRAME that is set to width:100%; height:100%; overflow:scroll; and an inclosed CONTAINER that is eg width:20000px; height:100%;.
Now I can scroll through the vast landscape of the blue CONTAINER where I would typically have elements absolute positioned in it and could scroll to. So far so good.
Now I have several PAGES that need width:100%; height:100%; because of overlapping content in it.

My problem is now that the floated container PAGES will span over the entire 20000px when I set it to width:100%; as that is 100% obviously…

How would you display multiple container in a row that are all as wide and as high as the viewport of the browser possibly without any JS hacks…

  • 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-01T10:24:26+00:00Added an answer on June 1, 2026 at 10:24 am

    Technically, you could just use fractions for the pages, like width:33%; if there are 3 pages, 25% if there are 4 pages, etc. In order for that to look clean across multiple browsers and window sizes, a little jQuery is the only proper way to handle it:

    $(function(){
        $('#first_page,#second_page,#third_page').css('width',$(window).width());
    });
    

    jQuery width() documentation

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

Sidebar

Related Questions

By looking into the Open JPA website i've found that i can log the
I have recently started looking into MQs and I had some very basic questions,
We are looking into using an ORM and I wanted some opinions/comparisons The basic
I'm looking for the most efficient way to be able to set some basic
Looking into selector performance between $('#ID1, #ID2, #ID3') vs $('1X CLASS'). Which is faster?
Currently looking into learn new technology and silverlight is on the potential list. However,
Am looking into developing an iPhone native app using Titanium Developer Since this is
I looking into making a kind of robot testing browser. Like Selenium, but one
I am looking into adding unit tests at work. I used MbUnit in the
I'm looking into adding some unit tests for some classes in my data access

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.