Bonjour,
Je souhaite personnaliser un textarea se trouvant dans mon formulaire... J'ai donc créé un background pour celui-ci. Tout fonctionne très bien sous firefox mais sous ie, j'ai le défilement du background dans mon textarea.
Pour résoudre ce problème, j'ai donc fixé le background mais le soucis maintenant c'est que le fond ne s'affiche plus ni sous firefox ni sous ie...
Voici mon code :
Si j'enlève le background-position, cela marche presque mais le souci est que le fond est décalé....
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 #div_affiche textarea { border:none; background-color: #FFFFFF; background-image: url("../_images/textarea.gif"); background-repeat: no-repeat; background-position: top left; background-attachment: fixed; width:340px; height:99px; padding:7px 12px 10px 8px; } #div_affiche textarea:focus { background:url("../_images/textarea.gif") bottom left; background-attachment:fixed; background-repeat:no-repeat; width:340px; height:99px; }
Si quelqu'un a une idée... peut être une faute de frappe, je sais pas, j'ai beau regarder, je trouve pas!
Partager