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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:16:07+00:00 2026-05-12T15:16:07+00:00

The master page currently looks like this: (No, I don’t work for Google. The

  • 0

The master page currently looks like this:
(No, I don’t work for Google. The images are placeholders.)

<body>
    <form id="frm" runat="server">
        <%--Header (Main Logo)--%>
        <div align="right">
            <asp:Image ID="HBannImg" runat="server" AlternateText="Google"
                ImageUrl="http://www.google.com/intl/en_ALL/images/logo.gif" />
        </div>
        <%--Navigation Bar--%>
        <div>
            <asp:Image ID="NImg1" runat="server" AlternateText="GMail"
                ImageUrl="https://mail.google.com/mail/help/images/logo2.gif" />
            <asp:Image ID="NImg2" runat="server" AlternateText="Images"
                ImageUrl="http://images.google.com/intl/en_us/images/logos/images_logo.gif" />
            <asp:Image ID="NImg3" runat="server" AlternateText="Videos"
                ImageUrl="http://video.google.com/img/logo_videos.png?hl=en" />
        </div>
        <%--Main Content--%>
        <div style="background-color: #000000; color: #FFFFFF;">
            <asp:ContentPlaceHolder id="CPHBody" runat="server" />
        </div>
        <%--Footer--%>
        <div align="center" 
            style="position: absolute; bottom: 0px; text-align: center;">
            © 2009 all rights reserved
        </div>
    </form>
</body>

The header and nav-bar are displayed correctly so far.

However, the footer should be centered. And the page content block should fill the space between the nav-bar and the footer, regardless of the size of the actual content. If the content is larger than this space, I want a scrollbar to appear INSIDE the content block, rather than on the entire page. Thus, the header AND the footer should always be visible, no matter where the user has scrolled on the page.

Does anyone know how this can be accomplished?
If any part of my description is unclear, feel free to ask for further details.

  • 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-12T15:16:07+00:00Added an answer on May 12, 2026 at 3:16 pm

    You can add scrollbars to a div with this code. The scrollbar will automatically appear if the content is too large to fit.

    div.content
    {
        overflow: scroll;
    }
    

    This will only get you halfway, since you also need to set the height of the content div so that the whole page has a height of 100 %. It is my experience, that you are opening a big bag of browser compatibility problems if you try to use height: 100%. You could also use JavaScript to set the height of the div on document.load and document.resize, but that would give a small but noticeable flicker when the page loads.

    I think the best solution would be to overlay the header and the footer over the content of the page and make their positions fixed. This would attach the scrollbar to the window and not the div tag, making it full height, so it might not be what you want. There is a nice example on how to accomplish this here: Fixed header and footer.

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

Sidebar

Related Questions

I have 2 references to jQuery in my master page which is currently configured
My master page contains a list as shown here. What I'd like to do
I have a master page, with a help link in the top menu. This
In a Master page, I have this.... <ul id=productList> <li id=product_a class=active> <a href=>Product
I have a master page called SampleMaster.master and this page contains a Repeater control
This is what I have On my .master page i have the following <script
In a master-page, how can I know, which controller I am currently using? Is
This is the scenario: I have a Master Page, In the Master Page I
I would like to add a control to a master page (that will go
Currently, I have a Site.Master page for my MVC app that renders great when

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.