Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > CSS
CSS Forum d'entraide sur l'utilisation des feuilles de style CSS. Avant de poster : Cours CSS, FAQ CSS, Galerie CSS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 16/05/2011, 18h48   #1
Invité de passage
 
Homme Florient
Étudiant
Inscription : mai 2011
Messages : 6
Détails du profil
Informations personnelles :
Nom : Homme Florient
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : mai 2011
Messages : 6
Points : 2
Points : 2
Par défaut -moz-linear-gradient et ajout d'une image en repeat

Bonjour à tous,
Je me mets depuis peu au css3, et me retrouve face à un problème:
Je souhaite appliquer un dégradé comme background, et à la fois afficher une petite image que je répète en X. Le dégradé s'affiche, mais pas l'image :/.

Je vous présente le css:
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
body{
	background: #cfb091 url("../images/musicNotes.png") repeat-x top left;
	background-image: -webkit-gradient(
	    linear,
	    left bottom,
	    left top,
	    color-stop(0.35, rgb(207,176,145)),
	    color-stop(0.69, rgb(158,127,97))
	);
	background-image: -moz-linear-gradient(
	    center bottom,
	    rgb(207,176,145) 35%,
	    rgb(158,127,97) 69%
	);
	font-family: "calibri";
	margin: 0; 
	padding:0; 
	color:black;  
	line-height: 1.4em;
}

Merci d'avance pour l'aide que vous pourriez m'apporter .
Argetloum est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/05/2011, 22h06   #2
Rédacteur/Modérateur
 
Homme Jérome Debray
Responsable de projet
Inscription : mai 2009
Messages : 627
Détails du profil
Informations personnelles :
Nom : Homme Jérome Debray
Âge : 32
Localisation : France

Informations professionnelles :
Activité : Responsable de projet
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : mai 2009
Messages : 627
Points : 3 064
Points : 3 064
combine tes propriété css, tu auras moins de problèmes :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
body{
	background: #cfb091 url("../images/musicNotes.png") repeat-x top left,
	-webkit-gradient(
	    linear,
	    left bottom,
	    left top,
	    color-stop(0.35, rgb(207,176,145)),
	    color-stop(0.69, rgb(158,127,97))
	),
	-moz-linear-gradient(
	    center bottom,
	    rgb(207,176,145) 35%,
	    rgb(158,127,97) 69%
	);
	font-family: "calibri";
	margin: 0; 
	padding:0; 
	color:black;  
	line-height: 1.4em;
}
tu remarqueras que j'ai mis une virgule entre les valeurs de la propriété de background pour combiner image de fond et gradient.

voici un lien utile :
http://debray-jerome.developpez.com/...ounds-en-css3/
ornitho13 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 16/05/2011, 23h22   #3
Invité de passage
 
Homme Florient
Étudiant
Inscription : mai 2011
Messages : 6
Détails du profil
Informations personnelles :
Nom : Homme Florient
Localisation : France

Informations professionnelles :
Activité : Étudiant
Secteur : High Tech - Multimédia et Internet

Informations forums :
Inscription : mai 2011
Messages : 6
Points : 2
Points : 2
Ah PARFAIT ! =)

Merci pour tout !
Argetloum est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 13h31.


 
 
 
 
Partenaires

Hébergement Web