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

The Archive Base Latest Questions

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

I’m so close but I can’t get this to work like I want it.

  • 0

I’m so close but I can’t get this to work like I want it. I’m trying to get the header and the menu to always be visible and have the content take up the rest of the view screen and have it’s own scrollbar when it overflows. The problem is that the width of the content isn’t being stretched to the right and I get a scroll bar in the middle of my page. I also can’t get it to take up the rest of the remaining window height, if I set the height to 100% it wants to use the whole window height instead of what is left.

I’m only working with IE7 or better so need to worry about javascript and am not averse to using jQuery if it can solve this problem!

http://pastebin.com/x31mGtXr

  • 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-14T23:30:40+00:00Added an answer on May 14, 2026 at 11:30 pm

    This is how it ended up for anyone that is curious. I had to cheat using some jQuery, but it did the trick and now it looks great when I resize it as well. 🙂

    <style type="text/css">
            html, body {
                height: 100%;
                font-family: 'Calibri','Tahoma','Arial', sans-serif;
                font-size: 14px;
                overflow: hidden;
            }
            #top{
                width: 100%;
            }
            #container{
                width: 100%;
                overflow: auto;
            }
            #menu {
                float: left;
                width: 12em;
            }
            #content {                
                overflow: auto;
                border-left: black solid 1px;
                padding: 0 0 0 .5em;
            }
    </style>
    
    <script type="text/javascript">
            function rez(){
                $('#content').css('height', $(window).height()-$('#top').height());
                $('#content').css('min-height', $('#menu').height());                
                $('#container').css('height', $(window).height()-$('#top').height());
            };
            $(window).resize(function() {
              rez();
            });
            $(window).load(function () {
              rez();
            });
    </script>
    
    
    <body>
        <div id="top">
            <tiles:insert page='/WEB-INF/jsp/template/header.jsp'/>
            <div id="top-space" style="border-bottom: gray solid 1em;"></div>
        </div>        
        <div id="container">            
            <div id="menu">
                <tiles:insert page='/WEB-INF/jsp/template/menu.jsp'/>
            </div>
            <div id="content">
                <tiles:get name='content'/>
            </div>
        </div>
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a French site that I want to parse, but am running into
This could be a duplicate question, but I have no idea what search terms
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.