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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:04:14+00:00 2026-05-30T21:04:14+00:00

I am looking to create a vertically scrolling website. I’ll have a set of

  • 0

I am looking to create a vertically scrolling website. I’ll have a set of 5 divs that I want to have a height of 100% that are stacked on one another, basically making the body 1500% in height. Yeah?

Here is my code so far:

CSS

   #contentWrapper {
        position: relative;
        width: 600px;
        height: 1500%;
        margin: 0 auto;
        border: 1px solid red;
    }

    .panel {
        position: relative;
        height: 6.66%;
        border: 1px solid blue;
    }

    .panelGuts {
        position: relative;
        top: 50%;
        width: 100%;
        height: 600px;
        margin: -300px 0 0 0;
        border: 1px solid green;
    }

HTML:

<div id="contentWrapper">
    <div class="panel">
        <div class="panelGuts">
            content
        </div>
    </div>

    <div class="panel">
        <div class="panelGuts">
            content
        </div>
    </div>

    <div class="panel">
        <div class="panelGuts">
            content
        </div>
    </div>
</div>

This seems to work in Safari, Firefox, and Chrome but it doesn’t work on an iPad or iPhone, and knowing how IE like’s to behave, it probably won’t work there either.

What I am wanting to know is 1) Why is won’t work on an iPad/iPhone, 2) is there a better way to do this, maybe with jQuery?

I need each panel to have a height of 100% and have the content (panelGuts) be vertically centered. I’ll be using jQuery ScrollTo (or some scrollTo plugin) to scroll to each div. I’d like to NOT have to set a specific height to each div…

Can anyone help?

  • 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-30T21:04:16+00:00Added an answer on May 30, 2026 at 9:04 pm

    I actually figured this out with HTML5. It was pretty simple. For anyone who wants to see my results

    CSS

    body, html {
        margin: 0px;
        padding: 0px;
        background: #FFF;
        height: 100%;
    }
    
    #contentWrapper {
        position: relative;
        width: 600px;
        height: 100%;
        margin: 0 auto;
    }
    
    .panelContainer { display: inline; }
    
    .panel {
        position: relative;
        display: table;
        height: 100%;
        width: 100%;
        background:green;
    }
    
    article.panel:nth-child(2n+2) {
        background:blue;
    }
    
    .panelGuts {
        position: absolute;
        top: 50%;
        width: 100%;
        height: 600px;
        margin: -300px 0 0 0;
        border: 1px solid black;
    }
    

    And my HTML

    <div id="contentWrapper">
       <section class="panelContainer">
          <article class="panel">
             <div class="panelGuts">
                text 1
             </div>
          </article>
    
          <article class="panel">
             <div class="panelGuts">
                text 2
             </div>
          </article>
       </section>
    </div>
    

    And a Fiddle for you: http://jsfiddle.net/ryanjay/dwspJ/

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

Sidebar

Related Questions

I looking to create a custom calender with Zend Framework, I am hoping that
Im looking to create a control that would look like comic baloon. In WPF
If I were looking to create my own language are there any tools that
I want to create a WPF control that contains elements (rectangles and ellipses) that
I am looking to create a Nav Bar in my Android application that functions
I want to create a horizontal and vertical accordion in asp.net. I have use
I have been trying to create a HTML E-mail, which is just one image
I am looking to create a drop-down tab that sit on the top of
I am looking to create an effect like that which is used on The
Looking to create a database table that saves user information (primarily user and password).

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.