Здравствуйте! Мне нужно сделать, чтобы сайт выглядел вот так: http://www.qdbp.ru/web.jpgЧто у меня есть сейчас: www.qdbp.ru Вот мой CSS: | Код | html { background-color: #5E656E; }
#window { width: 800px; height: 595px; margin-left: auto; margin-right: auto; border: 1px solid #333333; }
#header { width: 800px; height: 138px; }
#logo { width: 142px; height: 140px; margin-top: 0px; margin-left: 0px; background: url(images/logo.gif) no-repeat left top; }
#header_right { width: 658px; height: 140px; margin-top: -140px; margin-left: 142px; background: url(images/header.gif) no-repeat left top; }
#underheader { width: 800px; height: 31px; clear: both; background: url(images/underheader.gif) no-repeat left top; }
#main { width: 800px; background: url(images/BodyBG.gif) repeat-y left top; clear: both; }
#menu { width: 142px; height: 228px; margin-top: 0px; margin-left: 0px; background: url(images/menu.gif) no-repeat left top; }
#bgleft { width: 142px; height: 300px; margin-bottom: 0px; margin-left: 0px; background: url(images/bgleft.gif) repeat-y left top; }
#main_left { width: 142px; margin-top: 0px; margin-left: 0px; }
#main_right { width: 658px; height:285px; margin-top: -228px; margin-left: 142px; padding: 10px; background: url(images/main.gif) repeat-y left top; }
#footer1 { width: 800px; height: 124px; background: url(images/footer1.gif) no-repeat left top; clear: both; }
#footer2 { width: 800px; height: 20px; background: url(images/footer2.gif) no-repeat left top; clear: both; }
|
HTML: | Код |
<!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"> <head> <title>qdbp</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <link href="default.css" rel="stylesheet" type="text/css" /> </head> <body style="background-color:#FFFFFF;"> <div id="window"> <div id="header"> <div id="logo"> </div> <div id="header_right"> </div> </div> <div id="underheader"> </div> <div id="main"> <div id="main_left"> <div id="menu"> </div> <div id="bgleft"> </div> </div> <div id="main_right"> </div> </div> <div id="footer1"> </div> <div id="footer2"> </div> </div> </body> </html>
|
Помогите пожалуйста сделать следующим образом: Заголовок - блок logo и header сверху. Ниже блок underheader. В блоке ниже - он называется main есть три блока - меню, которое находится слева вверху, расширяемый блок bgleft (он должен расширяться одновременно с расширением блока main_right) и блок main_right, который содержит весь основной текст. Этот блок должен расширяться по мере введения в него текста. Внизу два блока - footer1 и footer2. Помогите пожалуйста реализовать это, желательно, не прибегая к помощи таблиц. Заранее благодарен.
|