[HTML/CSS] appliquer un background-color à submit

appliquer un background-color à submit [HTML/CSS] - HTML/CSS - Programmation

Marsh Posté le 11-06-2006 à 13:29:17    

Salut à tous,
je voudrai savoir comment appliquer une couleur de fond a un input de type submit, j'utilise quelquechose comme ca:
<input type="submit" value="envoyer" style="background-color: #999999;"> ou alors je peut faire ca a partir de mon css. Je prefere la deuxieme solution mais je sais pas quoi taper:
????
{
background-color: #000000;
}
 
Voila, j'attend vos réponses ;)


---------------
http://over-templates.c.la
Reply

Marsh Posté le 11-06-2006 à 13:29:17   

Reply

Marsh Posté le 11-06-2006 à 13:31:43    

Toutes tes réponses sur CSS1:
http://www.w3.org/TR/CSS1

Reply

Marsh Posté le 11-06-2006 à 13:45:49    

input[type="submit] {
 background-color: #999;
}

Reply

Marsh Posté le 11-06-2006 à 14:03:42    

merci à vous! ;)


---------------
http://over-templates.c.la
Reply

Marsh Posté le 11-06-2006 à 14:15:46    

afbilou a écrit :

input[type="submit] {
 background-color: #999;
}


sachant qu'IE ne le gère pas


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 11-06-2006 à 14:17:00    

J'arrive pas a faire marcher le code sous IE :
input[type="submit"]  
{
   background-color: #40463C;
}
Sous firefox pas de problème mais sous IE sa passe pas, vous auriez une idée?


---------------
http://over-templates.c.la
Reply

Marsh Posté le 11-06-2006 à 14:18:22    

en jouant avec un class :spamafote:

Reply

Marsh Posté le 11-06-2006 à 14:23:41    

masklinn a écrit :

sachant qu'IE ne le gère pas


Pas bien grave ce n'est qu'un style ! Le site reste fonctionnel :s

Reply

Marsh Posté le 11-06-2006 à 14:23:45    

jsui pas sur de bien comprendre comment utiliser une class dans ce cas la:
code css:  
.bouton
{
    background-color: #999;
}
 
code html:
<div class="bouton"><input type="submit" value="envoyer" /></div>
 
C'est bien ça?


---------------
http://over-templates.c.la
Reply

Marsh Posté le 11-06-2006 à 14:25:06    

afbilou ----> le site reste fonctionnel mais le design en prend un coup!


Message édité par hugoOo le 11-06-2006 à 14:25:17

---------------
http://over-templates.c.la
Reply

Marsh Posté le 11-06-2006 à 14:25:06   

Reply

Marsh Posté le 11-06-2006 à 14:25:25    

<input class="laclasse" ...

Reply

Marsh Posté le 11-06-2006 à 14:26:05    

non
 

Code :
  1. <input type="submit" class="submit" value="Envoyer"/>


 
et
 

Code :
  1. input.submit {
  2.    background-color: #999;
  3. }


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box, and replicate and expand beyond their wildest dreams by throwing away the limits imposed by overbearing genetic r
Reply

Marsh Posté le 11-06-2006 à 14:56:48    

merci à vous ca marche sous IE et sous FF :D !! merci les gars!


---------------
http://over-templates.c.la
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed