2
My website consists of a header
and below it a container-fluid
with screen information.
The problem is that mine header
is superimposing part of mine container-fluid
:
HTML:
<h3 class="card-header primary-color white-text">Monitoramento</h3>
<div class="container-fluid">
<form novalidate #f="ngForm">
<div class="card">
...
CSS:
.card-header{
height: 7%;
text-align: center;
position: fixed;
width: 100%;
z-index: 10;
}
I thought I’d add one margin-top: 7%
to give the exact distance between one element and the other, but it does not seem to be sufficient, only with margin-top: 25%
the correct distance between the elements is made, but as the screen increases the distance becomes very large and this impacts the visual.
If I take the position: fixed
everything works as expected, but I need this title fixed to the top.
You are using some Materialize framework or any other?
– hugocsl
material design bootstrap
– veroneseComS
Would that be? https://mdbootstrap.com/material-design-for-bootstrap/ ?
– hugocsl
that, that same
– veroneseComS