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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:28:16+00:00 2026-06-16T23:28:16+00:00

I am developing a Windows 8 Store app with html5/JS, a reading app. The

  • 0

I am developing a Windows 8 Store app with html5/JS, a reading app. The content page looks like :
enter image description here

And I’m using CSS-Grid-Layout to manage the page layout like this:

<body>
    <div class="contentPagepage fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton black-button" aria-label="Back" disabled type="button"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle"></span>
            </h1>
            <h2>
                <span class=""></span>
            </h2>
        </header>
        <div class="content clearfix" aria-label="Main content">
            <div id="leftContainer">
                <p>Left container</p>
            </div>

            <section id="rightContainer">
                <div id="navContainer">
                    <button type="button">button 1</button>
                    <button type="button">button 2</button>
                    <button type="button">button 3</button>
                </div>
                <!--<article>-->
                    <div id="contentContainer" class="item-content" aria-label="Main content">
                    html content 
                    </div>
            </section>

        </div>

    </div>
</body>

And the css file is:

.contentPagepage, .black-button {
    background-color: #EEEEEE;
    color: black;
}

.clear{ clear: both; }
.clearfix:after{ 
content:"."; display:block; height:0; clear:both; 
visibility:hidden; 
font-size: 0;
}

*html .clearfix{ 
 height:1%; 
}

*+html .clearfix{ 
 height:1%; 
}

.contentPagepage .content {
    -ms-grid-row-span: 2;
    display: -ms-grid;
    -ms-grid-columns: 40% 60%;
    height: calc(100% - 183px);
    margin: 133px 120px 0 120px;
    border: 1px solid #000;
}

#leftContainer {
    height: calc(100% - 183px);
    -ms-grid-column: 1;
    background-color: greenyellow;
    margin: 0 10px 10px 0;
}

#rightContainer{
    -ms-grid-column: 2;
    display: -ms-grid;
    -ms-grid-rows: 30px auto;
}

#navContainer {
    -ms-grid-row: 1;
}

#contentContainer {
    -ms-grid-row: 2;
    overflow-y: auto;
    height: calc(100% - 0px);
}

.contentPagepage .content #contentContainer {
    -ms-grid-row: 2;
    height: auto;
    background-color: red;
    display: block;
    overflow-y: auto;
}

Now the layout system works fine, but the content area got fixed too, this means if I use the “lement.querySelector(“.content .item-content”).innerHTML = item.content;” to load some html content, there is no scrollbar even the conent’s height is larger than the container.

So, how can I fix this problem?

  • 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-16T23:28:17+00:00Added an answer on June 16, 2026 at 11:28 pm

    First remove the “.contentPagepage .content #contentContainer” block from CSS.
    Then replace the #rightContainer and #contentContainer with this:

    #rightContainer{
        -ms-grid-column: 2;
        -ms-grid-rows: 30px 1fr;
        display: -ms-grid;
        height: calc(100% - 183px);
    }
    
    #contentContainer {
        -ms-grid-row: 2;
        overflow-y: scroll;
        background-color: red;
        height: 100%;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a windows store app using HTML and javascript. I need to login
I have been developing a windows store app, where I need something like Periodically
Hi I am developing an windows store app using Bing Map SDK, but the
I am developing a Windows 8 Store App using c# & XAML. I would
I'm developing a Windows Store app using the Dark theme, which works fine for
Enviroment I am developing a Windows Store App I created a TextBox with wordwrapping
I am developing an application (Windows Store) to access SkyDrive content. To login to
I have a great idea for a windows store app. I'd like to make
I'm developing a Windows Phone app that functions like the popular Logo Quiz in
I'm developing a Windows 8 Windows Store app (XAML/C#) in which I have a

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.