11-05-2010, 06:18
Witam mam problem z wyśrodkowaniem content i lewego menu... content udało mi się wyśrodkowac, ale jak zrobić, żeby wraz z content lewe menu było przylegające do wyśrodkowanej kolumny z treścią ?
Kod:
html, body {
background-color: #eeeeee;
color: #000;
margin: 0;
padding: 0;
}
#top {
margin-left: auto;
margin-right: auto;
}
#head {
background-color: #888;
}
#left {
width: 242px;
float: left;
overflow: hidden;
position:absolute;
background-color: #eeeeee;
display:block;
}
#content {
width: 697px;
margin-left: 242px;
background-color: #fff;
margin-left: auto;
margin-right: auto;
}
#foot {
clear: both;
background-color: #888;
}
#partners, #disclaimer{
width: 906px;
margin: auto;
padding: 0px;
clear: both;
}
Kod:
<div id="top">
<div id="head"><?php require ('includes/logo.php'); ?></div>
<div id="left"><?php require ('includes/l_logowanie.php');
require ('includes/l_menu.php'); ?></div>
<div id="content"><?php require ('includes/srodek.php'); ?></div>
<div id="foot"><?php require ('includes/foot.php'); ?></div>
</div>