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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:04:29+00:00 2026-05-27T19:04:29+00:00

I have layout with default width of 987px and aligned centered and currently working

  • 0

I have layout with default width of 987px and aligned centered and currently working on wide layout feature of site. CSS layout structure is as follows:

<div id="BodyContainer">
    <div class="headerouter">
        <div class="outercontainer">
            <uc:Header ID="header1" runat="server" /> 
        </div>
    </div>
    <div class="outercontainer">                
        <div class="main container">
            <asp:ContentPlaceHolder id="CPM" runat="server">

            </asp:ContentPlaceHolder>
        </div>
    </div>
</div>
<div class='footer'></div>

and as if someone chooses a wide layout like having more than 3 columns of record like 4, 5, 6 or 7, then in server side the CSS is overwritten by calculating i.e.

outercontainer = no. of columns * 330px;
container = no. of columns * 330px;

and in reaction to it outercontainer widths increases but the BodyContainer and footer remains the same and layout breaks. And help or solution to this problem but in CSS only.

CSS are as follows:

body {

    font-family: Helvetica, Arial, sans-serif;
    font-size: 75%;
    margin: 0;
    height:100%;
    color: #444;
    background:url('/images/container-back.png') repeat;

    /*Opera Fix*/
    &:before {
        content:"";
        height:100%;
        float:left;
        width:0;
        margin-top:-32767px;
    }
}


html, form { height: 100%; }

#BodyContainer {
    overflow:visible;
    /*padding-bottom: 130px;*/
    min-height:100%; 
    display:block;  
}

.outercontainer {
    width: 987px;
    margin: 0px auto 0px auto;
    padding: 5px 0px 80px 0px;
    position: relative;  
    display:block;

    &:after {
        content: ".";
        display: block;
        clear: both;
        visibility: hidden;
        line-height: 0;
        height: 0;
    }
}

.container {
    width: 987px;
    /*width: 1330px;*/
}

check out the problem at the

fiddle

  • 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-27T19:04:30+00:00Added an answer on May 27, 2026 at 7:04 pm

    New Answer

    Ok – it appears that you are muddling your .outercontainer a bit in the HTML. If I remove the additional .outercontainer divs and add the class to #BodyContainer instead, then this seems to resolve the issue:

    <div id="BodyContainer" class="outercontainer">
        <div class="headerouter">
            <uc:Header ID="header1" runat="server" /> 
        </div>            
        <div class="main container">
            <asp:ContentPlaceHolder id="CPM" runat="server">
    
            </asp:ContentPlaceHolder>
        </div>
    </div>
    <div class='footer'></div>
    

    Any styling that was in .outercontainer that was being applied to the floating divs can be added to a different CSS class such as .main.

    JSFiddle: http://jsfiddle.net/TzAsq/9/

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

Sidebar

Related Questions

I have a layout as follows: <div style=width: 300> <div style=width: 300>Some Content</div> </div
I have an application layout in my rails app to give a default header/footer
I have a layout which uses min-width and works great. So I came to
I have a layout that is working, but it has one very annoying problem..
I have the layout as follows: <div id=outerwrap> <div id=innerwrap> <div id=centerc>...</div> <div id=rightc
I am currently testing out Blueprint to create the layout for a site. So
I have an ASP.NET site that I'm developing. The layout is pretty basic. The
Problem: I am currently creating a webpage layout using divs and css rather than
If I have my layout's width and height set to wrap_content, it will take
I have an element for my side bar navigation being called from my layouts/default.ctp

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.