Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2317 connectés 

  FORUM HardWare.fr
  Programmation
  HTML/CSS

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

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

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

n°1385398
hugoOo
laisse pas dépasser ton pixel
Posté le 11-06-2006 à 13:29:17  profilanswer
 

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
mood
Publicité
Posté le 11-06-2006 à 13:29:17  profilanswer
 

n°1385400
nargy
Posté le 11-06-2006 à 13:31:43  profilanswer
 

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

n°1385405
afbilou
pouet your life
Posté le 11-06-2006 à 13:45:49  profilanswer
 

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

n°1385407
hugoOo
laisse pas dépasser ton pixel
Posté le 11-06-2006 à 14:03:42  profilanswer
 

merci à vous! ;)


---------------
http://over-templates.c.la
n°1385408
masklinn
í dag viðrar vel til loftárása
Posté le 11-06-2006 à 14:15:46  profilanswer
 

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 by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1385409
hugoOo
laisse pas dépasser ton pixel
Posté le 11-06-2006 à 14:17:00  profilanswer
 

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
n°1385410
KangOl
Profil : pointeur
Posté le 11-06-2006 à 14:18:22  profilanswer
 

en jouant avec un class :spamafote:

n°1385411
afbilou
pouet your life
Posté le 11-06-2006 à 14:23:41  profilanswer
 

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

n°1385412
hugoOo
laisse pas dépasser ton pixel
Posté le 11-06-2006 à 14:23:45  profilanswer
 

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
n°1385413
hugoOo
laisse pas dépasser ton pixel
Posté le 11-06-2006 à 14:25:06  profilanswer
 

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
mood
Publicité
Posté le 11-06-2006 à 14:25:06  profilanswer
 

n°1385414
afbilou
pouet your life
Posté le 11-06-2006 à 14:25:25  profilanswer
 

<input class="laclasse" ...

n°1385415
masklinn
í dag viðrar vel til loftárása
Posté le 11-06-2006 à 14:26:05  profilanswer
 

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 by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1385417
hugoOo
laisse pas dépasser ton pixel
Posté le 11-06-2006 à 14:56:48  profilanswer
 

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


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

Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  HTML/CSS

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

 

Sujets relatifs
[HTML] Aller à la ligne automatiquement dans une <table>traducteur html
CSS balise ULsuppression du code javascript dans la source HTML
CSS : formattage d'impressionFonction JS dans formulaire html
menu vertical CSS javascriptCSS: affichage d'une balise div en bas de page
"triche" HTMLRecrute Découpeur Xhtml/Css Valid (remuneration : on)
Plus de sujets relatifs à : [HTML/CSS] appliquer un background-color à submit


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)