Fixed Bar at the top

2

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 ??

    
asked by anonymous 02.03.2015 / 18:45

1 answer

2

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>
    
02.03.2015 / 18:59