minimal distance between headre and footer

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
jan_hut
Forum Members
Forum Members
Posts: 60
Joined: Sat Jul 01, 2006 1:48 pm

minimal distance between headre and footer

Post by jan_hut »

I would like to put a minimal distance between a header and a footer. Page height should still autoexpand if needed but for esthetic's sake I'd like a minimal space between these 2. Anyone know how to do that?
http://www.hartdesign.nl

I'm using the andreas00_cmsms : andreas00 stylesheet for this
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: minimal distance between headre and footer

Post by RonnyK »

Jan_Hut,

have you tried min-height, similar to the div#pagewrapper min-width. Be aware that you have to change it both in the css and in the template.

Ronny
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: minimal distance between headre and footer

Post by Dr.CSS »

You all ready have a min. height if you look at the contact page the footer and menu keep the page from getting any smaller than that...

You may want to use this for your footer...

div#footer {
  clear: both;      /* keep footer below content and menu */
  height: 201px;    /* adjust according your image size */
  background: #ffffff url(uploads/images/footer2.jpg) no-repeat 0 0;
  text-align: center;

}

div#footer p {
  font-size: 0.8em;
  color: #000;
  padding: 10em 0 0;      /* some air for footer */
  text-align: center;  /* centered text */
}
jan_hut
Forum Members
Forum Members
Posts: 60
Joined: Sat Jul 01, 2006 1:48 pm

Re: minimal distance between headre and footer

Post by jan_hut »

For some reason that just moves the Copyright message upwards instead of the footer image down. Interestingly though I found the stylesheet is calling the image twice, or so it seems:
div#footer {
  clear: both;      /* keep footer below content and menu */
  color: #000;
  height: 221px;    /* adjust according your image size */
  background: #B5B5B5 url(uploads/images/footer2.jpg) no-repeat 0 0;
  text-align: center;
}
div#footer {
  clear: both;      /* keep footer below content and menu */
  height: 221px;    /* adjust according your image size */
  background: #ffffff url(uploads/images/footer2.jpg) no-repeat 0 0;
  text-align: center;

}

div#footer p {
  font-size: 0.8em;
  color: #000;
  padding: 12em;      /* some air for footer */
  text-align: center;  /* centered text */
}
Post Reply

Return to “Layout and Design (CSS & HTML)”