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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:07:24+00:00 2026-05-27T05:07:24+00:00

For example,I want to make a layout like this: The ‘header’ can have a

  • 0

For example,I want to make a layout like this:

enter image description here

The ‘header’ can have a fixed height(for example:200px)

The ‘menu’ div in the left can have a fix width (for example:300px).

Now,I want the main div in the right can take all the width and height of the rest space.

Also,if user resize the browser,the size of the main div should resized accordingly,in a word,I do not want the scroll bar show in anytime.

Using javascript is the common manner,but it may difficult.

For example,use this(pseudo code):

window.onresize=function(){
 main.style.width=document.clientWidth-left.style.width;
}

But how about the border of the elemnt?

main.style.width=document.clientWidth-left.style.width-left.style.borderLeftWidth-left.style.borderRightWidth-......;

But in different browser,the ‘element.style.width’ may contain or not contain the width of the browser.

So I wonder if there is any idea I can avoid to use the js caculate?

  • 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-27T05:07:24+00:00Added an answer on May 27, 2026 at 5:07 am

    Use CSS and take a look at columns with equal height. If you want to never have scrolls on browser resize, then I recommend using absolute positioning. But that’s not native to web-development and design.

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

Sidebar

Related Questions

I have a virtual path (example: ~/Images/Banner.jpg) and I want to make that an
How can I make an enumeration of a complex type? For example, I want
I am trying to make my layout look like so. I have tried gridviews,
The spark panel component for example can be written like this <Panel title=Skinny> <child
How can I make a Layout with Buttons in matrix like: Button Button Button
I want to make the textbox allow only three digits and three decimals.For example
Is there any javascript function that can encrypt data: For example i want to
I have created a separate class (let's call it class2.cs for example) and want
I am have buttons like this: <button type=button class=img img_button_bla onclick=...>Bla!</button> The img class
I have three ListView widgets in the same LinearLayout . Something like this (I'm

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.