Forum Moderators: not2easy

Message Too Old, No Replies

Css body height

Css body won't stretch

         

Toendra

11:37 am on Oct 27, 2009 (gmt 0)

10+ Year Member



Hello,

I hope you can help me, I building a website for a friend of mine. (Preview: <snip>) You can see 3 colors. Red, blue and yellow. Now i want the yellow color always stretch to the footer div.

I know i can give the outer div a background-color but my images of the header and footer are transparant...Otherwise do someone know how i can have a lay-out with a margin on the top and on the bottom but the lay-out need always stay 100% height if the content is not fully filled...

Thx in advance

[edited by: swa66 at 12:55 pm (utc) on Oct. 27, 2009]
[edit reason] No URLs, please see ToS and Forum Charter [/edit]

Cobra

8:12 am on Oct 28, 2009 (gmt 0)

10+ Year Member



From what I've read, this is the solution I see. The layer that needs to be 100% in height should be made into a div and the height size specific with something like:

height:800px;

Or, if you have a lot of content already just set it to auto:

height:auto;

Hope that helps.