I am positioning elements on page and one of the elements won't move(input type="image"). I was wondering why it isn't moving as all the other elements are moving. Here is my code:
.search {
position: relative;
display: inline;
}
.search-bar {
width: 45%;
height: 50px;
border: 1px solid black;
position: absolute;
top: 50%;
left: 27.5%;
padding: 5px 5px;
z-index: -2;
}
#search-button {
width: ;
height: ;
border: 5px solid rgb(255, 84, 132);
border-radius: 100px 45px 100px 45px;
postition: absolute;
top: 500px;
left: 50%;
z-index: -1;
}
.logo {
position: absolute;
top: 29.9%;
left: 36.25%;
width: 27.5%;
display: inline;
}
<body>
<!--change image to logo and alt to name-->
<img class="logo" alt="logo" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQHdn3LhI9Zg829h1vZVJQ4Ngk-6bFqXdAdw2pf8fycGVcl_lO3ow"><br>
<!--search bar-->
<!--fill in action and check if target is correct-->
<form action="hey" target="_self" method="get">
<input class="search-bar" type="text" name="search-bar" placeholder="Search..." autofocus>
<input id="search-button" alt="logo" type="image" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTXZJ6ZoHbGStW2ZFfY1Ewb6Ev_-is9K0UWpzgulaC81HkOSFM">
</form>
</body>