0
How to change the height of the Row in the Bootstrap using percentage? I tried the property height so much on the CSS, how much in the HTML pure, and did not work.
In a nutshell, I want to have control over the height of the Row.
On the estate Height, I realized that if I inform pixel value ( px ) it works, but would like to use percentage ( % ), but using a percentage, the property is not recognised
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Bill Turner</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/estilo.css" rel="stylesheet" media="screen">
</head>
<style>
.c{
height: 50%;
background-color:aquamarine;
}
</style>
<body>
<div class="container">
<div class="row" height="50%">
<div class="c col-lg-3 col-md-3 col-sm-3 col-3">
esp
</div>
<div class="c col-lg-3 col-md-3 col-sm-3 col-3">
esp
</div>
<div class="c col-lg-3 col-md-3 col-sm-3 col-3">
esp
</div>
<div class="c col-lg-3 col-md-3 col-sm-3 col-3">
esp
</div>
</div>
</div>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>
You could put the code you’re having trouble with?
– Don't Panic
Usually bootstrap is the boss! So that you return to the domain of your styles always put the
!important
in its stylization. That’s when it comes to boostrap.– Bsalvo
That’s not the case. I tried to use online styling, so it should override any external style
– ARodrigues
Instead of the
height
, try to increase the padding of.table th, td {}
– Renato Diniz
!Import after format solves your problem!
– Thiago Cunha
Possible duplicate of Align height 3 Divs in a row - bootstrap
– Jéf Bueno