Продолжаю вести боевые действия с блочной версткой. В какой то момент она здала позиции и сверсталась часть но потом перешла в активное наступление и сейчас удерживает стратегическую позицию в макете.
Есть страница:
как хотелось бы:
[IMG]http://s42.radikal.ru/i096/0904/a6/75ccff399913t.jpg[/IMG]и все вроде бы ничего если бы не средний блок.
что я только с ним не делал. Но сделать так чтобы он растягивался на все оставшееся между левым и правым блоком (они строго по 200 пикселей) не могу если я ему задаю минимальные размеры этот редиска сдвигает правый блок на свою высоту (в ие6) выкрутился задав для ие абсолютное позиционирование (учитывая что шапка ровно 151 пиксель всегда)но это совершенно не выход ибо растягивать слой под экран скриптом не дело а как заставить его заполнять оставшееся пространство не могу понять.
Полигон испытаний выглядит довольно страшно.
css:
[PHP]* {
margin:0px;
font-family:"Comic Sans MS", cursive;
font-size:16px;
color:#FFF;
}
img {
border:0px;
}
body {
background-color:#010067;
background-image:url(../img/main_bg.gif);
background-position:top;
background-repeat:repeat-x;
}
#head {
clear:both;
background-image:url(../img/head_bg.gif);
background-position:top;
background-repeat:repeat-x;
min-height:150px;
height:auto !important;
height:155px;
text-align:center;
}
#name{
text-align:right;
position:relative;
right:0px;
top:0px;
text-align:center;
}
#main {
clear:both;
min-height:340px;
height:auto !important;
height:340px;
}
#footer {
clear:both;
background-image:url(../img/foot_bg.gif);
background-position:top;
background-repeat:repeat-x;
min-height:100px;
height:auto !important;
height:100px;
margin-top:2px;
}
#content {
float:left;
background-image:url(../img/splash_bg.gif);
background-position:top;
background-repeat:repeat-x;
min-height:29px;
height:auto !important;
height:29px;
min-width:586px;
width:auto !important;
width:582px;
margin-top:5px;
margin-left:5px;
margin-right:5px;
border-left-color:#036;
border-left-style:solid;
border-left-width:2px;
border-right-color:#036;
border-right-style:solid;
border-right-width:2px;
border-bottom-color:#036;
border-bottom-style:solid;
border-bottom-width:2px;
}
#calendar {
text-align:center;
}
#menu a {
text-decoration:none;
vertical-align:middle;
text-align:center;
margin-left:4px;
width:196px;
}
#menu a:hover {
text-decoration:underline;
}
#menu td {
background-color:#5B72E5;
border-bottom-width:2px;
border-bottom-color:#036;
border-bottom-style:solid;
cursor:pointer;
}
.left {
position:relative;
left:2px;
float:left;
width:200px;
background-image:url(../img/splash_bg.gif);
background-position:top;
background-repeat:repeat-x;
margin-top:5px;
min-height:29px;
height:auto !important;
height:29px;
border-left-color:#036;
border-left-style:solid;
border-left-width:2px;
border-right-color:#036;
border-right-style:solid;
border-right-width:2px;
}
.right {
position:relative !important;
position:absolute;
right:2px;
top:0px !important;
top:155px;
float:right;
width:200px;
clear:right;
background-image:url(../img/splash_bg.gif);
background-position:top;
background-repeat:repeat-x;
margin-top:5px;
min-height:29px;
height:auto !important;
height:29px;
border-left-color:#036;
border-left-style:solid;
border-left-width:2px;
border-right-color:#036;
border-right-style:solid;
border-right-width:2px;
}
#content div {
margin-top:31px;
overflow:auto;
}
.left div {
padding-bottom:31px;
overflow:auto;
background-image:url(../img/splash_bg.gif);
background-position:bottom;
background-repeat:repeat-x;
}
.right div {
padding-bottom:31px;
overflow:auto;
background-image:url(../img/splash_bg.gif);
background-position:bottom;
background-repeat:repeat-x;
}
#polezno
{
background:none;
margin:0px;
clear: both ;
display: none ;
padding:0px;
}
#polezno td{
background-color:#5B72E5;
background:none;
padding:4px;
border-bottom-width:1px;
border-bottom-color:#036;
border-bottom-style:solid;
}
#preload_elements {
display:none;
}
#friends, #dizain {
margin-top:0px;
text-align:center;
}
#friends, #dizain {
background-image:url(../img/splash_bg.gif);
background-position:top;
background-repeat:repeat-x;
}
#change_dizain {
background-color:#5B72E5;
}
#logo {
float:left;
margin:0px;
}
.sub_block {
padding-bottom:31px;
overflow:auto;
background-image:url(../img/splash_bg.gif);
background-position:bottom;
background-repeat:repeat-x;
}[/PHP]
Страничка:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title></title>
<link href="themes/buble_blue/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="head">
<div id="logo"><a href="index.php"><img src="themes/buble_blue/img/logo.gif" width="150" height="150" alt="MetSerp" /></a></div>
<div id="name">
<a href="index.php"><img src="themes/buble_blue/img/name.gif" alt="MetSerp" width="600" height="150" /></a>
</div>
</div> <!--(O_O) - голова странички -->
<div id="main">
<div class="left"><img src="themes/buble_blue/img/navi.gif" width="200" height="29" alt="Меню" />
<div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="menu" summary="">
<tr>
<td onmouseover="navi_back(this , '#006699')" onmouseout="navi_back(this , '#5B72E5')"><a href="index.php">На главную</a></td>
</tr>
<tr>
<td onmouseover="navi_back(this , '#006699')" onmouseout="navi_back(this , '#5B72E5')" ><span onclick="show_hide()">Полезности <img src="themes/buble_blue/img/forward.gif" alt="" name="f1" width="10" height="10" id="f1" /></span>
<div id="polezno"><table width="100%" border="0" cellspacing="0" cellpadding="0" summary="">
<tr>
<td onmouseover="navi_back(this , '#0066CC')" onmouseout="navi_back(this , '#5B72E5')">Конструктор форм</td>
</tr>
<tr>
<td onmouseover="navi_back(this , '#0066CC')" onmouseout="navi_back(this , '#5B72E5')">Скрипты php</td>
</tr>
<tr>
<td onmouseover="navi_back(this , '#0066CC')" onmouseout="navi_back(this , '#5B72E5')">Скрипты java script</td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td onmouseover="navi_back(this , '#006699')" onmouseout="navi_back(this , '#5B72E5')"><a href="index.php?con=1"><span>Новости</span></a></td>
</tr>
<tr>
<td onmouseover="navi_back(this , '#006699')" onmouseout="navi_back(this , '#5B72E5')"><a href="index.php?con=3">Заказ</a></td>
</tr>
<tr>
<td onmouseover="navi_back(this , '#006699')" onmouseout="navi_back(this , '#5B72E5')"><a href="index.php?con=4">О нас</a></td>
</tr>
</table>
</div>
<div class="sub_block">
<div id="friends"><img src="themes/buble_blue/img/friends.gif" width="200" height="29" alt="Друзья сайта" /><img src="htmlby.gif" alt="html.by Лучший на мой взгляд форум по интернет строительству" width="100" height="50" />
</div>
</div>
</div>
<!-- / -правая рука страницы -->
<div id="content">
<div>
<p>dfg</p>
</div>
</div><!-- (_) - туловище страницы-->
<div class="right"><img src="themes/buble_blue/img/cal.gif" width="200" height="29" alt="Расписание- календарь" />
<div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="calendar" summary="">
<tr>
<td>П</td>
<td>В</td>
<td>С</td>
<td>Ч</td>
<td>П</td>
<td>С</td>
<td>В</td>
</tr>
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
<td>6</td>
<td>7</td>
</tr>
<tr>
<td>8</td>
<td>9</td>
<td>10</td>
<td>11</td>
<td>12</td>
<td>13</td>
<td>14</td>
</tr>
<tr>
<td>15</td>
<td>16</td>
<td>17</td>
<td>18</td>
<td>19</td>
<td>20</td>
<td>21</td>
</tr>
<tr>
<td>22</td>
<td>23</td>
<td>24</td>
<td>25</td>
<td>26</td>
<td>27</td>
<td>28</td>
</tr>
<tr>
<td>29</td>
<td>30</td>
<td>31</td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
<div class="sub_block">
<div id="dizain"><img src="themes/buble_blue/img/change_diz.gif" width="200" height="29" alt="Сменить дизайн" />
<form id="form1" name="form1" method="post" action="scripts/change_dizain.php">
<select name="change_dizain" id="change_dizain">
<option value="buble_blue" selected="selected">Выпуклый (синий)</option>
</select>
</form>
</div>
</div>
</div>
<!-- \ - левая рука страницы -->
</div>
<!--/(_)\ - тело страницы-->
<div id="footer"></div><!--/-\ - ноги страницы-->
<div id="preload_elements">
<img src="themes/buble_blue/img/bottom.gif" width="20" height="20" alt="" />
</div>
<script type="text/javascript" src="scripts/scripts.js"></script>
</body>
</html>
уже сам запутался в коде.