2
I have the following problem: I need to let a div have the screen height the time.
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12" id="topo">...</div>
</div>
<div class="row">
<div class="col-lg-2 col-md-2 col-sm-2 col-xs-12" id="menulateral"> ...</div>
<div class="col-lg-10 col-md-10 col-sm-10 col-xs-12" id="principal"> ... </div>
</div>
I just want to do what I do with the tag menulateral
have the entire screen height.
I was trying to do it this way:
var altura = $("body").height();
$("#menulateral").height(altura);
I don’t know if this is the best way for me to do it, because I would like it to work smoothly and on every device that could access this page. There is a better and more reliable solution?
You are using bootstrap in your project?
– Pedro Camara Junior
yes I’m bootstrap
– Diego Souza