Autor Zpráva
marko12
Profil *
Zdravim,

mam takýto formulár:
<style>
.fieldbox {
    background:transparent url(image/subfield.jpg) no-repeat top left; 
    float:left; 
    height:27px;
    }
    
.fieldbox input {
    background:transparent url(image/subfield.jpg) no-repeat top right; 
    height:27px; 
    width:215px;
}
</style>
<form action="#" method="post">
          <span class="fieldbox"  style="margin:20 auto 10;"><input type="text" name="name" id="name" value=""/></span>
          <input type="submit" value="Vyhľadať" style="margin:10 auto;" id="sendbutton" name="sendbutton"/>
        </form>

Ako dosiahnúť aby sa mi text v inpute nelepil hneď ku kraju, ale aby bol trošku odsadený?
Ďakujem
LukasK
Profil
.fieldbox input {
    background:transparent url(image/subfield.jpg) no-repeat top right; 
    height:27px; 
    width:215px;
    padding-left: 5px;
}

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0