Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full height - Web Responsive - Twitter Bootstrap

Someone know how to set, in Twitter Bootstrap, a div to be always in full height (100% of screen height), in all resolutions?

I'll really appreciate any help.

like image 272
someone_learning Avatar asked Dec 26 '22 08:12

someone_learning


1 Answers

Basically any parent containers of the DIV need to also be 100% -- this includes BODY, HTML, etc.. You can add some CSS following the 'bootstrap.css' to override the Bootstrap CSS like this:

html,body{height:100%;}

.container {
    height:100%;
}

.fill{
    width:100%;
    height:100%;
    min-height:100%;
    background-color:#990000;
    padding:10px;
    color:#efefef;
}

http://jsfiddle.net/skelly/zrBGw/

like image 58
Zim Avatar answered Dec 28 '22 20:12

Zim