Bonjour
j'essaye dans le haut de ma page de superposer une image à un fond.
ça fonctionne sous safari, FF, IE6
mais pas avec IE7
code csset la page html
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 body { background : rgb(255, 255, 255) url(imghabillage/background-header.jpg) repeat-x scroll center top; z-index : 1; font-size : 10px; color : rgb(102, 102, 102); font-style : normal; font-family : verdana, arial, helvetica, sans-serif; } div#titre {font-family: "Arial",Times,Verdana; text-align: center; font-size: 20px; color: rgb(0, 155, 0); font-weight: bold; font-style: italic; padding-top: 5px; padding-bottom: 15px; } div#site { margin: auto; text-align: left; position: absolute; } div#tab{padding-left:50pt;} div#header1 { margin : 0; padding : 0; background : url(imghabillage/banniere1.jpg); background-repeat : no-repeat ; background-attachment :scroll; z-index : 2; background-position-x : center ;; height : 105px; }
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <title>Les marbres de l'Espiadet</title> <meta http-equiv="Content-Language" content="fr" /> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <link type="text/css" rel="stylesheet" media="screen" href="style.css" /> </head> <body> <div id="site"> <div id="header1"></div> <div id="sous-header"> <br /> </div>
Partager