Giocando con questi div ho notato che per qualche motivo che ignoro... a volte un div che dovrebbe iniziare nel margine sinistro del "content" risulta spostato verso destra....
per quale motivo tutti i miei div che contengono i "bar..." (immagine) non risultano allineati a SX ma sempre piu spostati a DX?
io vorrei che nel content ci fosse le 3 immagini di bar_s, bar_e, bar_n allineate ... invece sono leggermente spostati a destra
e anche nel footer down1, down2, down3 allineati a sinistra, mentre risultano ancora piu spostati a destra rispetto ai bar sopra
cosa sbaglio?
Codice PHP:
<div id="wrap" align="center">
<div id="main">
<div id="menu">
Menu
</div>
<div id="banner" align="center">
[img]images/30anni.png[/img]
</div>
<div id="content">
<div id="bar_s"><div id="bar_e"><div id="bar_n">
</div>
<div id="footer">
<div id="bar_down_1"><div id="bar_down_2"><div id="bar_down_3">
</div>
</div>
</div>
Codice PHP:
body
{
margin: 0;
background: #ffffff url(images/top.png) repeat-x 0 0 ;
}
#wrap
{
width: 100%;
height: 100%;
background: transparent url(images/down.png) repeat-x bottom ;
}
#main
{
width: 980px;
height: 100%;
}
#main p
{
padding: 10px;
}
#menu
{
margin-top: 150px;
width: 100%;
background: #ffffff;
}
#banner
{
margin-top: 8px;
width: 980px;
}
#content
{
margin-left: 0px;
width: 980px;
}
#bar_s
{
background: #ffffff;
margin-left: 0px;
margin-top: 8px;
width: 516px;
height: 60px;
background-image: url(images/bar_s.png);
}
#bar_e
{
margin-left: 518px;
margin-top: 8px;
width: 229px;
height: 58px;
background-image: url(images/bar_e.png);
}
#bar_n
{
margin-left: 231px;
margin-top: 8px;
width: 229px;
height: 58px;
background-image: url(images/bar_e.png);
}
#footer
{
margin-left: -1420px;
width: 980px;
}
#bar_down_1
{
margin-left: 0px;
margin-top: 8px;
width: 334px;
height: 70px;
background-image: url(images/bar_down.png);
}
#bar_down_2
{
margin-left: 335px;
margin-top: 8px;
width: 334px;
height: 70px;
background-image: url(images/bar_down.png);
}
#bar_down_3
{
margin-left: 335px;
margin-top: 8px;
width: 334px;
height: 70px;
background-image: url(images/bar_down.png);
}