Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [CSS] Centrowanie dwóch divów, Nietypowy problem.
EryQ
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 24.08.2008

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


Witam!
Robię sobie stronkę tak dla treningu i nastąpił pewien problem.
jak wycentrować dwa, trzy divy?
Poniżej kod:

index.html
CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<title>Tytuł</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>

<body>
<div id="all">
<div id="menu_top">
<a href="#">Strona Główna</a>
</div>
<div id="left_box">
</div>
<div id="info_box">
</div>
</div>
</body>
</html>



style.css
CODE
#all {
margin: auto;
}
#menu_top {
width: 100%;
height: 30px;
background-image: url(gfx/menu_top.png);
background-repeat: repeat-x;
text-align: center;
position: fixed;
top: 0px;
left: 0px;
padding-top: 7px;
}
a {
color: #193964;
font-family: Arial;
font-size: 12px;
text-decoration: none;
}
a:hover {
color: #193964;
font-family: Arial;
fonta-size: 12px;
text-decoration: underline;
}
#left_box {
background-image: url(gfx/left_box.png);
width: 64px;
height: 970px;
float: left;
}
#info_box {
background-image: url(gfx/info_box.png);
width: 173px;
height: 536px;
float: left;
}


Za nic nie wiem jak sprawić, aby centrowało całą treść strony. Proszę o pomoc.
Z góry dzięki i pozdrawiam,
EryQ.
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:39