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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T10:21:32+00:00 2026-06-16T10:21:32+00:00

I have a site that uses a master page which all the pages inherit

  • 0

I have a site that uses a master page which all the pages inherit from. The master page uses a style sheet for layout and feel. The basic Layout is this

<html>
<body >
<form runat="server" >
<div class="page" >
    <div class="header">
        <div class="title">
        </div>           
        <div class="main">            
            <asp:ContentPlaceHolder ID="MainContent" runat="server">                 
            </asp:ContentPlaceHolder>
        </div>
        <div class="clear">
        </div>
    </div>
</div>
<div class="footer">
</div>
</form>

My issue is I would like the main div to re size based on the clients window size
in the Css for .page I have the width set to 85% and this works fine, but when I try to set the height to a percentage it only is the height of the content are of the screen that is loaded. If I set it to a pixel value it will show the the height proper to that setting but I would like it to grow and shrink based on the client window.

I have search around and tried the min-height setting and other things I have found through goggle but none of them have worked.

  • 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-16T10:21:33+00:00Added an answer on June 16, 2026 at 10:21 am

    You should assign the height with jQuery or javascript.

    var browser_height = $(window).height();
    
    $('.main').css({'height':browser_height});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web site in asp.net that uses a master page. In this
I have a large slow ASP.net site that uses master pages. I've identified that
I have a site that uses a large centered background image, which naturally loads
I have a site that uses a menu control tied to a sitemapdatasource which
I have a site which uses Shadowbox-JS to bring up a settings page when
Is it possible to have a regular html page inherit its layout from another
Ok, so I have a site that uses the google maps API, and I
I have a PHP site that uses a fairly common authentication scheme. The entire
I have an application that uses Django 1.3 installed in python's site-packages. I want
I have a site that i want to redirect all requests accept for 1

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.