I make up a search form of this kind.
I can’t set up the location of the "search" button: in all browsers, it turns out to be located differently http://jsfiddle.net/T33sw/5/ . Tell me, how can I adjust the location of the button?
I make up a search form of this kind.
I can’t set up the location of the "search" button: in all browsers, it turns out to be located differently http://jsfiddle.net/T33sw/5/ . Tell me, how can I adjust the location of the button?
Heidel, I do as follows:
<div class="search> <input type="text" ....> <button></button> </div> .search{ position: relative; padding: 0 20px 0 0; /* 20px это ширина кнопки поиска, можно сделать побольше что бы текст не был вплотную к кнопке поиска*/ ... } .search input{ width: 100%; ... } .search button{ position: absolute; top: 0; right: 0; width: 20px; background: url('...'); .... }
I hope the meaning is clear
Source: https://ru.stackoverflow.com/questions/162482/
All Articles