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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:39:43+00:00 2026-06-04T05:39:43+00:00

I have a div (maincontent) which is inside another div (container). These divs are

  • 0

I have a div (maincontent) which is inside another div (container). These divs are located in aspx page, and I have many asp.net controls inside the insider div (maincontent). But it is so interesting that the site looks like this;

enter image description here

https://i.stack.imgur.com/omahx.jpg

The white part (maincontent) should be resized according to the elemnts inside. But it’s height is shown as 0px.

Here is the css of maincontent and container;

#container
{
background: #FFF;
width: 1000px;
height:auto;
margin-right: auto;
margin-left: auto;
border-right: 2px solid #B0AA94;
border-left: 2px solid #B0AA94;
border-bottom: 2px solid #B0AA94;
border-radius: 0px 10px 0px 10px;
}

#maincontent
{
height: auto;
font-family: Trebuchet MS;
font-size: 10px;
color: Black;
margin-left: 30px;
margin-top: 40px;
}

What am I missing ?

  • 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-04T05:39:45+00:00Added an answer on June 4, 2026 at 5:39 am

    You likely have a lot of floated elements within those containers. You’ll need to clear them. You can clear floated elements by setting their container’s overflow property to “auto” or “hidden”.

    Fiddle: http://jsfiddle.net/JyAMb/

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

Sidebar

Related Questions

I have div container and inside couple divs with class demo like <div id='container'
I have an asp.net page. There is sidebar in which there are several buttons.
I have div container and inside couple div with class demo and gravity like
I have an issue with having a asp.net Grid View loaded into a div
I am building an asp.net mvc application. I have my top menu structure which
I have created an asp.net site which works fine in internet explorer but for
I have div which has three buttons as, <div id=buttons> <input id=preview class=ButtonStyle type=submit
I have a page which works fine in Firefox and Chrome. I.E. 8 however
Basically I have an asp.net website with login and search pages. Currently, I have
problem shown: http://test.aussieclubroom.com/test.html I have a div in which content is dynamically generated into.

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.