-1
Come on, I’m trying to line up a search bar, only I don’t know how to do it right, it’s been a while since I got to use HTML with CSS, at the moment ta like this
And I need this search button to be on the right, only in the middle of the div (in the case of vertical alignment)
The HTML code of the div ta thus
<body>
<div class="principal">
<div class="topo">
<img src="IMGS/server-icon-1.png">
<img src="IMGS/server-icon-1.png">
<img src="IMGS/server-icon-1.png">
<input type="text" class="pesquisar" name="pesquisar" placeholder="Pesquisar">
</div>
</div>
</body>
And this is the CSS
.topo{
background-color: #4F4F4F;
padding-top: 15px;
}
img{
width: 99px;
height: 99px;
cursor: pointer;
}
.pesquisar{
border-radius: 8px;
border-style: none;
width: 210px;
height: 30px;
margin-left: 470px;
display: inline-block;
}
I tried to add margin or padding to see if it changed, it didn’t work, I tried to use display: inline-block;
also did not work. Someone can explain to me what I’m doing wrong?