1
I need to change the color of header
entire site, however when I apply the background color to header
, the color occupies only the space of the content, thus leaving the color of the body
at the top and down like this:
<body>
<header class="container-fluid topo">
<img src="img/selo.png" class="img-fluid mx-auto float-right selo">
<img src="img/logo.png" class="img-fluid mx-auto d-block mt-4" alt="Logo DoUp">
<h2 class="text-center text-dark ">Seu curso de espanhol em 12 meses</h2>
</header>
<div class="meio mt-2">
Css:
header{
background-color: #ffc107;
}
How to put this yellow to cover the whole top?
@wmsouza n worked
– Igor Oliveira
Must be some
margin
that it is defined, perhaps in.topo
– NoobSaibot
top n has nothing, use it only for . top img however n has defined margin
– Igor Oliveira
check if H2 is not on margin, . middle should also be some margin
– Anderson Henrique