0
Hello,
I have this situation:
.navigation{
margin: 0;
display: flex;
background-color: #6ab240;
height: 64px;
justify-content: center;
align-items: center;
}
.navigation a {
font-family: 'Roboto', sans-serif;
color: white;
text-decoration: none;
padding: 20px;
}
/*Botão esta Certo*/
.botao-contato{
background-color: #333366;
color: white;
border: none;
font-size: 14px;
padding: 10px 40px;
border-radius: 8px;
margin-left: 50px;
}
<header>
<h1 class="logo"><img src="http://i.imgur.com/lo6IuZS.png" alt="Instituto Feira Livre"> </h1>
<nav>
<ul class="navigation">
<li><a href="#">O que é?</a></li>
<li><a href="#">Como funciona?</a></li>
<li><a href="#">Qual é a diferença?</a></li>
<li><button class="botao-contato" type="button">Contato</button>
</ul>
</nav>
</header>
That way the logo is above the navbar, how can I put the logo on the same line as the navbar? I didn’t put the logo inside ul because I want it to be as semantic as possible.
No problem semantically putting the logo inside ul?
– Leonardo Lima
@Leonardolima has no problem, you already solved very well the semantics question using the
nav
, what I would also recommend is to tagalt
a brief explanation of what is the element and not the company name in case would be "free trade fair institute logo"– RFL