Indy
Indy

Reputation: 4957

CSS parent height auto, fill child height 100%

Live demo here: jsfiddle. And my question is: Is there any way in CSS to make .container 100% height of its parent #wrap, because as you can see .container have a border, which I want to make from header down to the footer. I tried everything, but nothing seems to be working. Thanks for any suggestions.

//Edit: I found a solution. I moved #footer into div #wrap and removed min-height; Now works: jsfiddle

Upvotes: 0

Views: 455

Answers (1)

Faust
Faust

Reputation: 15404

.wrap needs to be height:100%, and it works.

Upvotes: 1

Related Questions