XML / CSS backgroung general
Mathilde
-
Mathilde -
Mathilde -
Bonjour,
Je suis en pleine creation de page css, et je cherche activement comment inserer un fond de couleur sur toute la page et non seulement derriere mon texte et dans le block definis, hj'aimerais de la couleur derrieres mes differents blocks> Merci pour votre aide a l'avance.
Voici un extrait de mon fichier css :
header
{
font-family: georgia, prestige, sans-serif;
font-size: 0.8in;
font-weight: 1000
background-color: #000000;
color: orangered;
letterspacing: 3px;
border-style: solid;
display: block;
text-decoration: blink, overline, underline ;
text-shadow:2px, yellow;
text-align: center;
margin-left: 50px;
margin-right: 50px;
margin-bottom: 50px;
margin-top: 50px;
border-width: 30px;
border-style: outset;
border-color: red;
}
cdalbum-title
{
display: block;
font-variant: small-caps;
margin-left: 30px;
margin-right: 30px;
margin-bottom: 30px;
margin-top: 30px;
background-color: #000000;
text-shadow:2px, #CC66CC;
text-align: center;
border-width: 20px;
border-style: outset;
border-color: #330033;
}
artist
{font-family: georgia, prestige, sans-serif;
font-size: 0.3in;
font-weight: 400
background-color: #FF9900;
color: #330033;
letterspacing: 3px;
margin-left: 30px;
margin-right: 30px;
margin-bottom: 30px;
margin-top: 30px;
}
album
{
font-size: 0.3in;
font-weight: 400
background-color: #FF9900;
color: #330033;
margin-left: 30px;
margin-right: 30px;
margin-bottom: 30px;
margin-top: 30px;
}
cdalbum-information
{
padding: 10 px;
display: block;
font-variant: small-caps;
margin-left: 30px;
margin-right: 30px;
margin-bottom: 100px;
margin-top: 30px;
background-color: #FFFFFF;
border-width: 20px;
border-style: outset;
border-color: #FF9900;
text-shadow:2px, #CC66CC;
}
Je suis en pleine creation de page css, et je cherche activement comment inserer un fond de couleur sur toute la page et non seulement derriere mon texte et dans le block definis, hj'aimerais de la couleur derrieres mes differents blocks> Merci pour votre aide a l'avance.
Voici un extrait de mon fichier css :
header
{
font-family: georgia, prestige, sans-serif;
font-size: 0.8in;
font-weight: 1000
background-color: #000000;
color: orangered;
letterspacing: 3px;
border-style: solid;
display: block;
text-decoration: blink, overline, underline ;
text-shadow:2px, yellow;
text-align: center;
margin-left: 50px;
margin-right: 50px;
margin-bottom: 50px;
margin-top: 50px;
border-width: 30px;
border-style: outset;
border-color: red;
}
cdalbum-title
{
display: block;
font-variant: small-caps;
margin-left: 30px;
margin-right: 30px;
margin-bottom: 30px;
margin-top: 30px;
background-color: #000000;
text-shadow:2px, #CC66CC;
text-align: center;
border-width: 20px;
border-style: outset;
border-color: #330033;
}
artist
{font-family: georgia, prestige, sans-serif;
font-size: 0.3in;
font-weight: 400
background-color: #FF9900;
color: #330033;
letterspacing: 3px;
margin-left: 30px;
margin-right: 30px;
margin-bottom: 30px;
margin-top: 30px;
}
album
{
font-size: 0.3in;
font-weight: 400
background-color: #FF9900;
color: #330033;
margin-left: 30px;
margin-right: 30px;
margin-bottom: 30px;
margin-top: 30px;
}
cdalbum-information
{
padding: 10 px;
display: block;
font-variant: small-caps;
margin-left: 30px;
margin-right: 30px;
margin-bottom: 100px;
margin-top: 30px;
background-color: #FFFFFF;
border-width: 20px;
border-style: outset;
border-color: #FF9900;
text-shadow:2px, #CC66CC;
}
Configuration: Windows XP Internet Explorer 7.0
2 réponses
-
Bonjour,
Personnellement j'essaierais de mettre un bout de code au tout début soit:
body { background-color: #000000; //et tu mets ta couleur ici pour le background de ta page entière } -
Coucou juste pour dire que j'avais enfin trouve une solution. Jai recree un block general en inserant dans mon fichier . dtd un root element music pour l'emsemble des elements et en rajoutant les balises <musik> </musik> dans mon fichier .xml et en ajoutant dans mes css :
musik
{
display: block;
border-width: 30px;
border-style: outset;
border-color: black;
background-color: #FFCC00;
}
Vala merci