First of all, sorry for my poor english :S. I want a responsive full height grid using bootstrap 3. My problem is the grid, I don't know how to set 100% height to container and the inside divs. Width is perfect but height :S.
I try with this CSS but it doesn't work:
html body .container-fluid{
min-height:100%;
height:100%;
}
.border3{
min-height:20%;
height:20%;
}
.border4{
min-height:20%;
height:20%;
}
.border5{
min-height:20%;
height:20%;
}
HTML+CSS: http://jsfiddle.net/z5dpu7od/1/
Maybe I can solve this problem with JavaScript. I can take the browser height and applied it to .container-fluid element but I want to try it with CSS only.
Thanks for your answer :).
Break up your content into row groups that you can use to set the height for each grouping. Height in css only works if the element's ancestors all have a height set. So, in the demo, you can see that I grouped your elements into three primary row groups: menus (which I set to 80% of the window/viewport height), the navigation links (which is set to 5%) and the brand (which is set to 15%). Doing this, allows you to then give the elements within those row groups heights in percentages as well. For example, the menu group has five nested rows which you can give equal heights by setting them each to
height: 20%
.Demo
CSS:
HTML:
This can be solved with css, no need for javascript.
For 100% height you want to set the full hierarchy of containers to 100% height, from your innermost div, all the way to the
<html>
element.To start with, your initial css should start with this:
Notice the comma between the elements, this is so that all of them have the height set to 100%. Instead of your version which only sets the .container-fluid to be 100% height.
It's difficult to know what you are trying to achieve, but this is what I would do with the design. One thing I use frequently is a small script to make responsive equal heights JQuery Match Height, it's for responsive equal heights.
SCRIPT: http://brm.io/jquery-match-height/
**DEMO: http://jsbin.com/depoq/1/****
Then it's applied like this:
Then you need to add the class
.inner
(in this example) in the correct places.