Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] Środkowanie DIVa - ale inaczej
asma1313
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 3.02.2012
Skąd: Radom

Ostrzeżenie: (0%)
-----


Witam. mam nastepujący problem. Wiem jak wysrodkowac diva za pomocą margin: auto; ale gdy to zrobie wyswietla mi oddatkową linijkę na górze okna, przez co div nie przylega do górnej krawędzi.
Dla lepszego zrozumienia:
Divy przed wyśrodkowaniem:
http://www.fotosik.pl/pokaz_obrazek/pelny/...c035959e93.html
Divy po wyśrodkowaniu:
http://www.fotosik.pl/pokaz_obrazek/pelny/...e779276b7b.html
jak widać wyśrodkowany div "przesunął" się w dół , naszedł na kolejny, ale tez nie trzyma sie górnej krawędzi.
Jak mogę to naprawić?

EDIT: faktycznie, juz wklejam.
CODE

<!--

#Table_01 {
margin: auto;
top:0px;
width:800px;
height:600px;
text-align: center;
}

#index-01_ {
margin: auto;
left:0px;
top:0px;
width:800px;
height:28px;
}

#index-02_ {
position:absolute;
left:0px;
top:28px;
width:800px;
height:100px;
}

#index-03_ {
position:absolute;
left:0px;
top:128px;
width:697px;
height:23px;
}

#index-04_ {
position:absolute;
left:697px;
top:128px;
width:103px;
height:23px;
}

#index-05_ {
position:absolute;
left:0px;
top:151px;
width:800px;
height:22px;
}

#index-06_ {
position:absolute;
left:0px;
top:173px;
width:800px;
height:154px;
}

#index-07_ {
position:absolute;
left:0px;
top:327px;
width:326px;
height:155px;
}

#index-08_ {
position:absolute;
left:326px;
top:327px;
width:474px;
height:155px;
}

#index-09_ {
position:absolute;
left:0px;
top:482px;
width:800px;
height:28px;
}

#index-10_ {
position:absolute;
left:0px;
top:510px;
width:800px;
height:38px;
}

#index-11_ {
position:absolute;
left:0px;
top:548px;
width:800px;
height:52px;
}

-->
</style>

CODE

<body style="background-color:#f38e0d">
<div id="Table_01">
<div id="index-01_">
<img id="index_01" src="images/index_01.gif" width="800" height="28" alt="" />
</div>
<div id="index-02_">
<img id="index_02" src="images/index_02.gif" width="800" height="100" alt="" />
</div>
<div id="index-03_">
<img id="index_03" src="images/index_03.gif" width="697" height="23" alt="" />
</div>
<div id="index-04_">
<img id="index_04" src="images/index_04.gif" width="103" height="23" alt="" />
</div>
<div id="index-05_">
<img id="index_05" src="images/index_05.gif" width="800" height="22" alt="" />
</div>
<div id="index-06_">
<img id="index_06" src="images/index_06.gif" width="800" height="154" alt="" />
</div>
<div id="index-07_">
<img id="index_07" src="images/index_07.gif" width="326" height="155" alt="" />
</div>
<div id="index-08_">
<img id="index_08" src="images/index_08.gif" width="474" height="155" alt="" />
</div>
<div id="index-09_">
<img id="index_09" src="images/index_09.gif" width="800" height="28" alt="" />
</div>
<div id="index-10_">
<img id="index_10" src="images/index_10.gif" width="800" height="38" alt="" />
</div>
<div id="index-11_">
<img id="index_11" src="images/index_11.gif" width="800" height="52" alt="" />
</div>
</div>

</body>


Pozdrawiam i Dziękuję za pomoc.





Ten post edytował asma1313 3.02.2012, 01:03:12
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 19.08.2025 - 15:46