I tried to align the submit button and the search input, but I am not working, and I do not understand why. I have this style code:
input[type=search] border: none cursor: text padding: 0 border: 1px solid #cfcfcf .search-main input, .search-main button height: 30px display: inline-block .search-main button background: #55e0a8 border: none width: 18% margin-left: -7px display:inline-block .search-main input width: 80%
and this html:
<form method="get" class="search-main"> <input name="q" type="search"> <button type="submit"></button> </form>
and here is what I get:
Here is the online version
So, a rather stupid question, but since I tried for more than 40 minutes, I thought that I would try to publish it here. I played with firebug, padding, marginins, and I don't understand where this problem came from.
Naemy source share