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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:50:27+00:00 2026-05-12T06:50:27+00:00

I am new to CSS, I found an layout online, but I have a

  • 0

I am new to CSS, I found an layout online, but I have a little problem customizing it.

When the content of mainContent div is “higher” then the left menu, everything is working ok – but when the mainContent is smaller, it looks like this:

Image

The div order is visible through Firefox WebDevelopper addon. The .css file is as follows:

body {
   padding: 0px;
   margin: 0px;
   font-family: Arial, Helvetica, sans-serif;
}

#container {
   padding-right: 20px;
   padding-left: 20px;
}

#header {
}

#mainMenu {
   border: 1px solid #808080;
   font-size: 0.8em;
}

#pageBody {
   position: relative;
}

#sidebar {
   width: 250px;
   padding: 5px 10px 10px 10px;
   float: left;
   border: 1px solid #808080;
   font-size: 0.8em;
   margin-top: 5px;
   margin-right: 10px;
   min-height: 500px;
}

.mainContent { 
   text-align: justify;
   min-width: 400px;
   min-height: 500px;
   margin-left: 285px;
}

#footer {
   font-size: 0.8em;
   border-top-style: solid;
   border-top-width: 1px;
   border-top-color: #CCCCCC;
   text-align: center;
   color: #CCCCCC;
   background-color: #333333;
   padding-top: 10px;
   padding-bottom: 10px;
   margin: 0;
   /*clear: both;*/
}

#footer p {
   margin-top: 0px;
   margin-bottom: 5px;
}

#footer a {
   color: #CC3300;
   text-decoration: none;
}

#footer a:hover {
   color: #FF9900;
}

Can I please ask for some guidance in repairing this layout? I would like to acheive something similar to:

alt text

The exact position is not important, I just want the footer to be placed below the pageBody div.

I would be grateful for any help.

  • 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-12T06:50:28+00:00Added an answer on May 12, 2026 at 6:50 am

    I don’t know what your html looks like, but it looks like you could try inserting a clearing div just before the footer… btw, why is the ‘clear: both;’ commented out in the footer css rule?

    code to insert just before the footer div:

    <div style="clear: both;"/>
    

    Not positive whether it will help, but if I understand your problem correcty, this is my best guess!

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

Sidebar

Related Questions

I am pretty new at CSS but have been learning, doing my moms small
Being new to css I found this first problem. I'm pretty sure this is
I'm pretty new to CSS and have found a nuance that I don't understand.
How to add new css class or id and then write properties for html
Hi I am new to css media queries so please bear with me, but
I am new in CSS so please help me in this problem. I hope
I'm making a small website and I'm very new to CSS but whenever I
I have this menu I found how to made on a tutorial but I
I am new to Ruby, using ruby 1.9.2P180 and Rails 3.1.0.rc2 I have screen.css
I'm pretty new to wordpress (only a couple of days), but I have it

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.