Hello, I would like to put a black bar at the top of my page, but I can not do it.
Does anyone know how to do it ??
Hello, I would like to put a black bar at the top of my page, but I can not do it.
Does anyone know how to do it ??
You can use position: fixed
for this purpose:
.barra {
background-color: black;
position: fixed;
top: 0;
left: 0;
right: 0;
height: 35px;
}
<div class="barra"></div>