|
|
|
|
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Блочная вёрстка</title>
<style type="text/css">
body {
background-color:#999999;
text-align:center;
color:#0000FF;
margin:0px;
}
#block {
width:1000px;
min-width:1000px;
}
#fs {
clear:both;
height:auto;
}
#tl {
float:left;
width:50px;
height:50px;
background-color:#00FF00;
}
#tc {
float:left;
width:200px;
height:50px;
background-color:#00CC00;
}
#tr {
float:left;
height:50px;
width:50px;
background-color:#009900;
}
#cl {
float:left;
width:50px;
height:300px;
background-color:#006600;
}
#cc {
float:left;
width:200px;
height:300px;
background-color:#003300;
}
#cr {
float:left;
width:50px;
height:300px;
background-color:#006666;
}
#bl {
float:left;
width:50px;
height:50px;
background-color:#0099FF;
}
#bc {
float:left;
width:200px;
height:50px;
background-color:#0066FF;
}
#br {
float:left;
width:50px;
height:50px;
background-color:#00FFCC;
}
</style>
</head>
<body>
<div id="block">
<div id="tl"></div>
<div id="tc"></div>
<div id="tr"></div>
<div id="fs"></div>
<div id="cl"></div>
<div id="cc"></div>
<div id="cr"></div>
<div id="fs"></div>
<div id="bl"></div>
<div id="bc"></div>
<div id="br"></div>
<div id="fs"></div>
</div>
</body>
</html>
|
Вот я сижу и ломаю голову) Как мне задать ширину центральным дивам, чтобы они были максимальной ширины? если ставлю 100% в свойствах, то обтекание уже не работает...
а фиксированную нельзя(( | |
|
|
|
|
|
|
|
|
для: elenaki
(29.09.2010 в 18:55)
| | Спасибо! Сейчас немного подкорректирую согласно их примеру! | |
|
|
|