Bonjour à tous,
J'essais de centrer une div dans une autre, celà marche sous IE mais pas Chrome ...
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
19
20
21
22
23
24
25
26
27
28
29 <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Layout test</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> </head> <style> #frameHeaderContainer { position: absolute; top: 0px; left: 0px; width: 1024px; height: 50px; border:solid 2px gray; } #frameHeader { margin: 10px; height: 30px; border:solid 2px gray; } </style> </head> <body> <div id="frameHeaderContainer"> <div id="frameHeader"> </div> </div> </body> </html>
Partager