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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:35:10+00:00 2026-06-15T00:35:10+00:00

My site currently has this general layout for all pages: <?php include head.php; ?>

  • 0

My site currently has this general layout for all pages:

<?php
include "head.php";
?>
<title></title>
<?php
include "top.php";
?>
<div class="mainbody">
</div>
<?php
include "bottom.php";
?>

head.php includes the html and head stuff (ie, the topmost things on a page), top.php includes the site logo and the horizontal navbar, bottom.php includes the footer and closing html/body tags, and the mainbody class contains the content for the specific page.

Now my problem is on one specific page. On every page, there is enough content for the page to be large enough that it needs to be scrollable, and the mainbody div expands to accommodate that. The issue with one of my pages is that there is too little content, or rather, most of the content is floated, so the div doesn’t expand as it normally does. I thought I could fix it by adding a min-height to the CSS, but this doesn’t work. The CSS currently looks like this:

.mainbody {
background-image: url("Images/Background.png");
border-radius: 5px;
-moz-border-radius: 5px;
padding: 0.7%;
position: relative;
width: 68%;
min-height: 80%;
min-width: 768px;
margin: 0px auto;
}

Every single line works, except for min-height. I cannot get it to work.

  • 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-15T00:35:12+00:00Added an answer on June 15, 2026 at 12:35 am

    Put the value of min-height in pixels

    min-height: 400px;
    

    Here is a fiddle to show you

    FIDDLE

    Addition

    To do this pure css you need to add some css to the body like so

     body {position:absolute; height:100%; width:100%; overflow:visible; }
     #content { background-color:#cccccc; min-height:80%; }
    

    FIDDLE

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

Sidebar

Related Questions

I have this site: http://www.problemio.com which currently has a solid-colored background and the body
I have an ecommerce site which currently has product URLs like this: http://www.mydomain.com/nike-tshirt/Large http://www.mydomain.com/nike-tshirt/Medium
I work with a team that has a sharepoint site currently runnning and its
The site I'm currently working on has a series of videos on a carousel
Currently I have a site where it has a header that looks something like
this is quite a simple question hopefully. Our client currently has a Flash banner
Currently, when I try to hit certain pages of my site via something like
I'm currently working on a site http://www.lovepotatoes.ovh3.microserveltd.co.uk/ and this question is in relation to
Here is my site Currently still fiddling around with design layout and there is
Our company currently has a web site which is deployed in Windows 2000 OS,

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.