Aide pour code

keegan. Messages postés 434 Date d'inscription   Statut Membre Dernière intervention   -  
 a44icus -
Bonjour,
je suis en train de créer un site web avec dreamweaver 8 j'ai créer un font (avec un calque couleur bleu)et je veux avec une baniere donc (elle est enregistrer dans la racine)

voila je ne sais pour ajouter mon code pour ajouter ma baniere

voici le code que je doit ajouter:

<STYLE type=" text/css ">
body
{
background-image: url(baniere.png);
background-repeat: no-repeat;
background-attachment:fixed;
background-position: top left;
}
</STYLE>


et voici mon code de tout mon site




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
left:5px;
top:1px;
width:1440px;
height:900px;
z-index:1;
background-color: #000033;
}
-->
</style>
</head>
<body>
<div id="Layer1"></div>
<p> </p>
</body>
</html>




je récapitule le code que je doit ajouter(pour la baniere) je ne sais pas ou le placer dans tout le code de mon site



j'espère que vous avez comprit
A voir également:

3 réponses

a44icus
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<style type="text/css">


#Layer1 {
position:absolute;
left:5px;
top:1px;
width:1440px;
height:900px;
z-index:1;
background-color: #000033;
}

body {
background-image: url(baniere.png);
background-repeat: no-repeat;
background-attachment:fixed;
background-position: top left;
} 

</style>

</head>
<body>
<div id="Layer1"></div>
<p> </p>
</body>
</html>
0
keegan. Messages postés 434 Date d'inscription   Statut Membre Dernière intervention   38
 
oui sa marche mais ma baniere s'affiche derrière mon calque(fond) est je n'arrive pas a la mettre sur mon calque (fond)
0
a44icus
 
Tu créés une boite au dessus de ta boite Layer1 comme cela :



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
<style type="text/css">


#Layer1 {
position:absolute;
left:5px;
top:1px;
width:1440px;
height:900px;
z-index:1;
background-color: #000033;
}

#header{
background-image: url(baniere.png);
background-repeat: no-repeat;
background-attachment:fixed;
background-position: top left;
} 

</style>

</head>
<body>
<div id="header"></div>
<div id="Layer1"></div>
<p> </p>
</body>
</html><code>
</code>
0