2012-03-24 70 views
1

我找不出什麼原因造成提交按鈕和搜索框的輸入區域之間的空白。
http://i.imgur.com/q4Dqz.png造型的默認WordPress的搜索框

HTML:

<form method="get" id="searchform" action="<?php bloginfo('url'); ?>"> 
<p><input type="text" class="field" name="s" id="s" placeholder="Search" /> 
<input type="submit" class="submit" name="submit" value="Traži" /></p> 

CSS:

#searchform { 
    float: right; 
    padding-top: 10px; 
    position: relative; 
} 

header input#s { 
    margin: 0; 
    border: none; 
    height: 29px; 
    width: 250px; 
} 

header input:active { 
    border: none; 
} 

header input.submit { 
    border: none; 
    height: 30px; 
    width: 30px; 
    margin: 0; 
    text-indent: -99999px; 
    background: white url(images/search.png) 0 0 no-repeat; 
    padding-right:20px; 
} 

回答