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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:34:21+00:00 2026-06-08T19:34:21+00:00

My page here has the layout broken for some reason – the #main-content div

  • 0

My page here has the layout broken for some reason – the #main-content div should stretch across the page to the right hand nav (which is fixed at 348px).

Really not sure why, if someone could please have a look with a code inspector that would be great..and if you need the CSS & html pls let me know.

Many thanks..

  • 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-08T19:34:22+00:00Added an answer on June 8, 2026 at 7:34 pm

    Remove the max-width attribute from the content-wrapper and set the width of the wrapper to be 98.6% (accounting for your margins)

    Note that you may have to repeat this for some of your other, wrapped divs/elements, in case you have other elements that are shorter than expected.

    I tested with this solution with Chrome and it works perfectly – exactly as I believe it was intended

    EDIT:

    Further explanation of why max-width will not work:

    The max-width and min-width properties may be thought of as intermediaries between fluid and statically sized elements. An element that does not have a specified width but has a specified min-width will be sized at either its default width or the min-width (the lower of the two). Likewise, an element that doesn’t have a specified width but has a specified max-width will be set to its automatic width, but will only expand so far as it does not exceed its maximum width.

    Min and Max widths can be used with defined widths, as well. For example, if you have an element for which you set the width to be width: 70%; but you do not want that width to exceed say 300px, you can set max-width: 300px; and the element will not exceed 300px, but it could be smaller than 300px, depending on the size of the container (which is what percentages refer to – i.e., if a width is set to a percentage, it will be that percentage of the containing element’s width).

    Real-world scenarios – these are two of the most common uses of min and max width that I have seen:

    • min-width – Situation: you are creating a webpage that has a fluid layout (gets wider/narrower when resizing the window) and a content section that you want to always be legible. You can set a min-width so that the section has a minimum size after witch the scroll bar will appear and the section will no longer shrink. I have a min-width implemented on my new homepage for just this purpose (see it here – adjust the size of your window to make it narrower and narrower and watch what happens when the main content [<div id="mainContentBack">] section reduces to be only 600px in width – that div is set to have min-width: 600px;).

    • max-width – The scenario that I described when I was explaining these properties is actually the most common that I have seen. The second most common, however, is when a developer chooses to create a textarea on their page (or sometimes even a whole section) that is resizable (user can click and drag to change the size). They set a maximum width so that the user cannot make the element any wider than was specified.

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

Sidebar

Related Questions

I have a main page that loads a content of a div: var content
http://steph.net23.net/work.php here is my test link. This page has a jquery script in it
In my JSP page, a tag <jsp:include page=servletName /> has been added. Here servletName
Looking for some implementation advice: I have a page that has a 3-tab ajaxToolkit:TabContainer.
I'm trying to make a two-column page using a div-based layout (no tables please!).
I have the following layout: ButtonA has a specific left and right side layout,
I have a page with 2 Div containers ( Left and Right ). PartsList
Here is my layout's top: the Blue portion has the css code as follows:
I have a basic Android question here: I have a main.xml layout that loads
I am trying to construct a page layout, where the left column has 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.