Précédent   Forum du club des développeurs et IT Pro > Webmasters - Développement Web > CSS
CSS Forum d'entraide sur l'utilisation des feuilles de style CSS. Avant de poster : Cours CSS, FAQ CSS, Galerie CSS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 21/08/2010, 12h17   #1
okoweb
Membre éclairé
 
Homme Gérard Okono
Développeur Web
Inscription : juillet 2006
Messages : 828
Détails du profil
Informations personnelles :
Nom : Homme Gérard Okono
Localisation : Cameroun

Informations professionnelles :
Activité : Développeur Web
Secteur : Administration - Collectivité locale

Informations forums :
Inscription : juillet 2006
Messages : 828
Points : 377
Points : 377
Par défaut Mettre une image à la place d'un input submit

Bonjour à tous,
J'essaie de mettre sur mon site une image en lieu et place d'un bouton input submit.

Code html
Code :
1
2
3
4
5
6
7
 
<div id="search">
<form  action="search.php" method="get">
<input type="text" name='search' value='search...' class="field" />
<input type="image" src="templates/images/search.png" alt="Rechercher" class="image" />
</form>
</div>
Code css
Code :
1
2
3
4
5
 
#search input.field { color: #777; height: 18px; line-height: 18px; border: solid 1px #999; padding: 2px; font-weight: normal; text-indent: 4px; }
#search input.image {
margin: 0 0 0 10px;
}
L'image apparait est décalé par rapport au champ de texte.

Comment résoudre ce décalage. Vous pouvez le voir en ligne à url

Merci pour votre aide...
okoweb est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 21/08/2010, 17h05   #2
Ozareff
Invité régulier
 
Inscription : mars 2008
Messages : 7
Détails du profil
Informations forums :
Inscription : mars 2008
Messages : 7
Points : 6
Points : 6
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
#search input.image {
margin:0.5em 0 0.5em 10px;
}
.field {
border:1px solid #999999;
color:#777777;
float:left;
font-weight:normal;
height:18px;
line-height:18px;
padding:2px;
text-indent:4px;
}
Ozareff est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 21/08/2010, 23h29   #3
okoweb
Membre éclairé
 
Homme Gérard Okono
Développeur Web
Inscription : juillet 2006
Messages : 828
Détails du profil
Informations personnelles :
Nom : Homme Gérard Okono
Localisation : Cameroun

Informations professionnelles :
Activité : Développeur Web
Secteur : Administration - Collectivité locale

Informations forums :
Inscription : juillet 2006
Messages : 828
Points : 377
Points : 377
Citation:
Envoyé par Ozareff Voir le message
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
#search input.image {
margin:0.5em 0 0.5em 10px;
}
.field {
border:1px solid #999999;
color:#777777;
float:left;
font-weight:normal;
height:18px;
line-height:18px;
padding:2px;
text-indent:4px;
}
Exactement, merci à vous.
okoweb est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Cette discussion est résolue.
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 05h21.


 
 
 
 
Partenaires

Hébergement Web