Below, the left: 50% in the css does not move the input element in any way. Anyone know why? Is this just not possible? Do I have anything blocking it? I don't want to use margins because it will look different on different computers. If left: is not possible, how can this be centered either way?
(I put the left: 50% at the bottom of css for the searchbar)
#searchbar{
border-radius: 4px;
background-color: transparent;
cursor: pointer;
color: transparent;
background: #FFF;
padding: 1px 1px 1px 5px;
width: 30px;
height: 30px;
outline: none;
border: 1px solid #CCCCCC;
-webkit-transition: all .5s;
-moz-transition: all .5s;
transition: all .5s;
text-align: center;
background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Simpleicons_Interface_magnifier-1.svg/768px-Simpleicons_Interface_magnifier-1.svg.png) no-repeat scroll 0 0;
background-size: contain;
border:none;
right: 50%
}
<input id = "searchbar" name = "search" size = "1" autocomplete="off" maxlength="27">