-2
I’m a beginner in the area and I need your help. I’m trying to put this image next to the buttons but I’m not getting it. I tried using background-image but it didn’t work.
I left my code to see if someone gives me a north. From now on, thank you.
* {
padding: 0;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
}
.menu {
display: flex;
width: 100%;
padding: 22px;
border-bottom: 2px solid gray;
}
.menu a {
text-decoration: none;
margin-left: 17px;
font-weight: bold;
color: gray;
}
.lateral {
/*background-color: grey;*/
width: 100%;
}
.botao_lateral {
background-color: rgb(179, 182, 179);
padding: 15px;
width: 20%;
margin: 20px;
border-radius: 10px;
}
.botao_lateral a {
text-decoration: none;
color: black;
font-weight: bold;
font-size: 16px;
}
.lateral img {
width: 600px;
}
<body>
<div class="menu">
<a href="">Home</a>
<a href="">Sobre</a>
<a href="">Contato</a>
</div>
<div class="lateral">
<div class="botao_lateral">
<a href="">Inicio</a>
</div>
<div class="botao_lateral">
<a href="">Comunidade</a>
</div>
<div class="botao_lateral">
<a href="">Amigos</a>
</div>
<div class="botao_lateral">
<a href="">Chat</a>
</div>
<img src="imagens/logo.jpeg" alt="imagem logo"/>
</div>