Tom
Tom

Reputation: 141

Set footer to a minimum height but more if pushed down?

I am working on a website and I am using WordPress and a custom theme based made with Lubith. It generates the entire theme including CSS however, it doesn't have any option to keep the footer at a minimum distance down and I need to code that in myself. However, I don't know how to do that. So, how can I set the footer to be a minimum amount of pixels down the page and then have it scale with the content once it reaches it.

This is what I believe is the CSS for the footer:

#footer {
    height: 40px;
    position: relative;
    clear: both;
    padding: 1px 60px 0 0;
    background: url(images/main-footer.gif) no-repeat center top;
}

Thanks

Upvotes: 0

Views: 972

Answers (1)

Grigor
Grigor

Reputation: 4049

to set a minimum height you can do min-height:40px;

Upvotes: 2

Related Questions