My site consists of a header and below it a container-fluid with the information on the screen. The problem is that my header is overlapping part of my container-fluid:
Myhtml:
<h3class="card-header primary-color white-text">Monitoramento</h3>
<div class="container-fluid">
<form novalidate #f="ngForm">
<div class="card">
...
My css:
.card-header{
height: 7%;
text-align: center;
position: fixed;
width: 100%;
z-index: 10;
}
I thought of adding a 7% margin-top to give the exact distance between one element and the other, but it seems to be not enough, only with 25% margin-top is done the correct distance between the elements, but according to is increasing the distance screen becomes very large and this impacts the visual. can anybody help me? If I take the position: fixed everything works as expected, but I need this title to be fixed.