0
I have two Divs, when hidden the first need that the second ascend to her place, but she does not move, as I can do for her is in place of the first div, ie climb?
Follows the code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Módulos</title>
<style>
table {
}
table-striped > tbody > tr:nth-child(odd) > th {
background-color: red;
}
table-striped > tbody > tr:nth-child(odd) > td {
background-color: white;
}
td {
height: 40px;
}
th {
color: white;
background-color: #F44336;
height: 40px;
padding: 4px;
}
</style>
</head>
<body>
<div id="divconsulta" class="container-fluid" style="margin-left: -29px; margin-right: -29px">
<!--Striped Rows-->
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card-panel" style="margin-top: -29px; ">
<div class="body table-responsive">
<table id="grid_Modulos" class="table-striped"></table>
</div>
</div>
</div>
</div>
</div>
<form class="form" id="wizard_with_validation" method="POST">
<div id="divcadastro" class="container-fluid" style="margin-left: -29px; margin-right: -29px;margin-top:0px;visibility:hidden">
<!--Striped Rows-->
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card-panel">
<div class="card" style="background: rgba(245, 245, 245, 0.6)">
<div class="body">
<div class="row">
<input id="id_id" name="id_id" type="hidden" class="form-control input-style" autofocus required>
<label class="label-margin-top">Descrição*</label>
<input id="id_nome" name="id_nome" type="text" class="form-control input-style input-casesensitive" autofocus required>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</body>
</html>
Dude, I copied your html/css and it has something very sinister ai, better vc review the css, because it is something that you inserted, I will post an html with basic bootstrap showing an example without overwriting anything of bootstrap.
– Leandro
There is a difference between using
visibility:hidden
anddisplay:none
. See what the difference is in this question.– Woss