CSS: linear-gradient ne marche pas
Fermé
Pseudo......
-
7 avril 2012 à 18:50
bik225 Messages postés 387 Date d'inscription dimanche 31 juillet 2011 Statut Membre Dernière intervention 31 août 2017 - 7 avril 2012 à 19:18
bik225 Messages postés 387 Date d'inscription dimanche 31 juillet 2011 Statut Membre Dernière intervention 31 août 2017 - 7 avril 2012 à 19:18
A voir également:
- Linear gradient css
- Enlever le soulignement d'un lien css ✓ - Forum CSS
- Background color css ✓ - Forum CSS
- Comment créer un lien non souligné ✓ - Forum Réseaux sociaux
- Css download - Télécharger - HTML
- Css retour à la ligne - Forum CSS
3 réponses
bik225
Messages postés
387
Date d'inscription
dimanche 31 juillet 2011
Statut
Membre
Dernière intervention
31 août 2017
72
7 avril 2012 à 19:09
7 avril 2012 à 19:09
Essaye avec ce code: (ne met pas background-image!)
article aside
{
background: #00AEEF;
background: -moz-linear-gradient(top, #00AEEF 0%, #7D7E7D 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00AEEF), color-stop(100%,#7D7E7D));
background: -webkit-linear-gradient(top, #00AEEF 0%,#7D7E7D 100%);
background: -o-linear-gradient(top, #00AEEF 0%,#7D7E7D 100%);
background: -ms-linear-gradient(top, #00AEEF 0%,#7D7E7D 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00aeef', endColorstr='#7d7e7d',GradientType=0 );
background: linear-gradient(top, #00AEEF 0%,#7D7E7D 100%);
}
article aside
{
background: #00AEEF;
background: -moz-linear-gradient(top, #00AEEF 0%, #7D7E7D 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00AEEF), color-stop(100%,#7D7E7D));
background: -webkit-linear-gradient(top, #00AEEF 0%,#7D7E7D 100%);
background: -o-linear-gradient(top, #00AEEF 0%,#7D7E7D 100%);
background: -ms-linear-gradient(top, #00AEEF 0%,#7D7E7D 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00aeef', endColorstr='#7d7e7d',GradientType=0 );
background: linear-gradient(top, #00AEEF 0%,#7D7E7D 100%);
}
Firefox et chrome, sous les deux ça ne fonctionne pas. Le validateur css3 me dit ça :
Propriété erronée : background-image linear-gradient(bottom,rgb(14, 66, 1) 5%,rgb(0, 135, 16) 50% ) n'est pas une valeur de background-image : linear-gradient(bottom,rgb(14, 66, 1) 5%,rgb(0, 135, 16) 50% )
Propriété erronée : background-image linear-gradient(bottom,rgb(14, 66, 1) 5%,rgb(0, 135, 16) 50% ) n'est pas une valeur de background-image : linear-gradient(bottom,rgb(14, 66, 1) 5%,rgb(0, 135, 16) 50% )
ça marche merci beaucoup, par contre les couleursne sont pas les bonnes mais je vais les retrouver.
Pourquoi fallait-il mettre tout ça ?
Pourquoi fallait-il mettre tout ça ?
bik225
Messages postés
387
Date d'inscription
dimanche 31 juillet 2011
Statut
Membre
Dernière intervention
31 août 2017
72
7 avril 2012 à 19:18
7 avril 2012 à 19:18
C'est du CSS3, alors il ya pour différents navigateurs, comme certains suportent mal le CSS3, alors il faut les adapter donc c'est pour ça qu'il y a ces codes (j'ai omis de mettre les commentaires :( )