Modifier l'apparence d'un textfield (form)

Résolu/Fermé
christophe.therrien Messages postés 102 Date d'inscription lundi 25 mai 2009 Statut Membre Dernière intervention 9 juin 2010 - 16 oct. 2009 à 16:51
christophe.therrien Messages postés 102 Date d'inscription lundi 25 mai 2009 Statut Membre Dernière intervention 9 juin 2010 - 16 oct. 2009 à 17:57
Bonjour,
je sais comment modifier l'apparence d'un bouton dans un formulaire, mais je ne sais comment modifier l'apparence de mes textfield. Ce que je voudrais faire, ce serait changer leur apparence par une image ou je ne sait trop quoi, je suis vraiment perdu

Merci
A voir également:

4 réponses

avion-f16 Messages postés 19246 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 21 avril 2024 4 497
16 oct. 2009 à 17:33
Si tu ne veux t'en prendre qu'aux input du type text, fait comme ça :
input[type="text"] {
  border:none;
  background:url('tonimage.png');
}
0
christophe.therrien Messages postés 102 Date d'inscription lundi 25 mai 2009 Statut Membre Dernière intervention 9 juin 2010 1
16 oct. 2009 à 17:48
ca ne marche pas...je dois faire quelque chose de mal

voici mon code
<form id="form1" name="form1" method="post" action="">
<input[type="text"] {
  border:none;
  background:url('textfield.png');
}/>
    <br />
    
</form>
0
avion-f16 Messages postés 19246 Date d'inscription dimanche 17 février 2008 Statut Contributeur Dernière intervention 21 avril 2024 4 497
16 oct. 2009 à 17:52
C'est du n'importe quoi !
<style type="text/css">
input[type="text"] {
  border:none;
  background:url('textfield.png');
}
</style>
0
christophe.therrien Messages postés 102 Date d'inscription lundi 25 mai 2009 Statut Membre Dernière intervention 9 juin 2010 1
16 oct. 2009 à 17:57
tout à fait d'accord!!!, dsl excuse mon incompétence ca marche...

merci
0