View Single Post
  #1 (permalink)  
Vecchio 10-29-2007, 05:00 PM
Erasmo Erasmo non è in linea
Junior Member
 
Registrato dal: Oct 2007
Messaggi: 3
predefinito Centrare l'intestazione del sito in css con Explorer 5.5

Salve,
non riesco a capire perchè l'intestazione appare spostata con Explorer 5.5.

La struttura html è questa:

codice HTML:
<div id="container">
   <div id="header">
   </div>
   <div id="corpo">
       <div id="content">
       </div>
       <div id="menu">
       </div>
   </div>
</div>
<div id="footer">
</div>
e questo è il CSS:

codice HTML:
body {
	margin: 0;
	padding: 0;
	text-align: center;
	background: #FF0000 url(../immagine.jpg) repeat-x center bottom;
}

#container {
	width: 800px;
	margin: auto;
	background-position: center;
	background-repeat: repeat-y;
	background-image: url(../immagine.jpg);
	text-align: left;
}

#header {
	position:relative;
	display: block;
	width: 800px;
	height: 223px;
	background: url(../immagine.jpg);
}

#corpo {
	width: 800px;
	float: right;
	display: inline;
}

#content {
	float: right;
	display: inline;
	width: 550px;
	background: transparent url(../immagine.jpg) no-repeat;
	color: #000;
}

#menu {
	float: right;
	display: inline;
	width: 180px;
	background: transparent;
	color: #000;
	font: italic bold 13px Georgia, "Times New Roman", Times, serif;
	margin-right: 15px;
	letter-spacing: -2.5px;
	word-spacing: 2px;
	}
	
#footer{	
	height: 210px;
	background-image: url(../immagine.jpg);
	clear: both;
}
Ho provato anche a mettere l'header in un float sperando che fosse un problema dei doppi apici, ma in realtà non è cambiato niente:

codice HTML:
#header {
	float: right;
	display: inline;
	width: 800px;
	height: 223px;
	background: url(../immagine.jpg);
}
Il problema non si presenta con Firefox, Explorer 6 e 7, ma invece si con Explorer 5.5.
In pratica l'header viene viene allineato a sinistra invece che al centro.
Che modifiche vuole nel css questo browser marcio? Come risolvere?
Grazie mille
Rispondi quotando