Ciao a tutti, ho un problemone:
devo fare un layout elastico in cui un div é posizionato al centro della pagina.
l'ho fatto nel seguente modo:
html:
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>test elementi template</title>
<link href="./prova.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="test_assoluto">aeiou</div>
</body>
</html>
css:
html{
height: 100%;
width: 100%;
margin: 0px;
padding:0px;
border: 0px;
}
body{
background-image: url("./legno-tavolo_3.jpg");
background-repeat: repeat;
z-index: 0;
height: 100%;
width: 100%;
margin: 0px;
padding:0px;
border: 0px;
text-align: left;
position: relative;
}
#test_assoluto{
position: absolute;
left: 16em;
right: 16em;
top: 3em;
bottom: 4em;
background-color: blue;
}
Vorrei sapere perché ho le seguenti differenti rappresentazioni:
in firefo, e gli altri é ok, in IE l'angolo in alto a sx é ok, mentre vengono ignorati i codici bottom e right, adattando il div per il contenuto(aeiou).
Come faccio per far valere bene tutto anche in IE?

Rispondi quotando