XML / CSS backgroung general

Fermé
Mathilde - 11 mai 2008 à 15:43
 Mathilde - 11 mai 2008 à 17:09
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;
}
A voir également:

2 réponses

Ricky38 Messages postés 4349 Date d'inscription samedi 15 mars 2008 Statut Contributeur Dernière intervention 2 novembre 2013 1 458
11 mai 2008 à 15:54
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

} 
0
Oui j'ai deja essayer mais ca ne marche pas , mais je me demandais peut etre qu'il fallait rajouter du coup des metadonnees dans mon fichier.xml genre <body> </body>. Mais alors pour le coup ca me met de la couleur seulement dans els block et pas derriere le textes ni derriere les block ... bizarre
0
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
0