Добрый день, помогите решить проблему
Есть -
Желаемый конечный результат -
Подскажите, как сделать белый фон не на весь шаб, а для контента и сайтебара (как на 3 картинке) и как снести футер вниз (сейчас он сразу под контентом)
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css"/>
<title>GRead beta</title>
</head>
<body>
<div class="main">
<div class="head">
</div>
<div class="content">
<div class="post-main">
<h1><a href="#">Welcom</a></h1>
<div class="post">
Hello, Friends.</p>GRead helps you to read book conveniently. But I will not tell a lot better to look screencast: </p>
If you have any question, send in to me: <a href="#">spirt40@gmail.com</a>
</div>
</div></div>
<div class="sitebar">
<div class="vidget">
<h2>Log in</h2>
<ul>
<form method="post" name="registration" id="registration" action="#">
<li>
<span id="text1">Username: </span>
<input type="text" name="name" id='name' />
</li>
<li>
<span id="text1">Password:</span>
<input type="password" name="password1" id="pass"/>
</li>
<div class="send-form"><li>
<input type="submit" name="submit" value="Sing up" onclick="check()" class="send-button"/> <a href="#">remember me password</a></li>
</div>
</form>
<img src=Images/bg-menu.jpg align="left">
or use OpenID: <a href="#">Google</a> <a href="#">Yahoo</a> <a href="#">other</a>
</ul>
</div>
<div class="reklama">
<div class="vidget2">
<h2>Sign in</h2>
<ul>
<form method="post" name="registration" id="registration" action="#">
<li><span id="text1">Username: </span>
<input type="text" name="name" id='name' /></li>
<li><span id="text1">E-Mail:</span>
<input type="text" name="email" id="email" /></li>
<li><span id="text1">Password:</span>
<input type="password" name="password1" id="pass"/></li>
<li>I have agree to the <a href="#">Terms:</a> <input type="checkbox" name="option" value="a4"></li>
<div class="send-form">
<li><input type="submit" name="submit" value="Sing up" onclick="check()" class="send-button"/></li>
</div>
</form>
</ul>
<div class="reklama1">
<div class="vidget22">
<h2>News</h2>
<div class="post">
Now fix bug with " ". If U have this
symbol in a book, then click to "reProcess book" in edit's book menu.</div>
<div class="data">
<h9>2009-08-27 09:18:02</h9>
</div>
<div class="post">Sorry, but now OpenID work with Google. Use standard registration form. I'm now working on this problem. Sorry, Friends!
</div>
<div class="data">
<h9>2009-08-26 19:28:27</h9>
</div>
<div class="post"> New part of article about how I was building GRead (in Russian). <a href="#">Read</a>
</div>
<div class="data">
<h9>2009-08-26 13:52:53</h9>
</div>
</div></div></div></div></div>
<div class="footer">
Legal:© 2009 / <a href="#">Terms</a> / <a href="#">About</a> / <a href="#">Contact</a>
</div></div>
</body>
</html>
[/HTML]
[CSS]@charset "utf-8";
/* CSS Document */
* { padding:0; margin:0;}
body {background:#e7e7df url(Images/bg-body.jpg) left top no-repeat;
}
.main {
width:1050px; margin:0 auto;}
.head{
height:40px;}
.content-main{
background:#fffdfd; overflow:hidden;
}
.content{
width:730px; float:right; margin:15px 15px 15px 0;
}
.post-main{
background:#ffffff; margin:0;
}
.post-main h1{
font:14px Verdana, Geneva, sans-serif;color:;background:#4ebbff;
padding:5px 20px 8px 15px; margin:0;
}
.post-main h1 a{
font: normal 14px Verdana, Geneva, sans-serif;color:#000000;text-decoration:none;
}
.post-main h1 a:hover{
font: normal 14px Verdana, Geneva, sans-serif;color:#000000;text-decoration:underline;
}
.imgstyle{
float:left; margin:0;
}
.post{
margin:0;
}
.post p{
font:12px Verdana, Geneva, sans-serif;color:#000; margin:0;
}
.post p a{
color:#423e3e; text-decoration:underline;
}
.sitebar{
width:275px; float:left; margin:15px 15px 15px 15px;
}
.vidget{
background:#ffffff; margin:0;
}
.vidget h2{
font:14px Verdana, Geneva, sans-serif; background:#66cc9a; color:#000;
padding:5px 20px 8px 15px; margin:0;
}
.vidget ul{
list-style:none;padding:10px 10px;
}
.vidget li {margin:5px 0 0 0;}
.reklama{width:275px; float:left; margin:15px auto;
}
.vidget2 {
background:#ffffff; margin:0;
}
.vidget2 h2{
font:14px Verdana, Geneva, sans-serif; background:#f3a950; color:#000; padding:5px 20px 8px 15px; margin:0;
}
.vidget2 ul{
list-style:none;padding:10px 10px;
}
.vidget2 2ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 5px 5px 20px;
}
.vidget2 ul li a{
text-decoration:none; color:#000;
}
.vidget2 li {margin:5px 0 0 0;}
.reklama1 {width:275px; float:left; margin:15px auto ;
}
.vidget22 {
background:#ffffff; margin:0;
}
.vidget22 h2{
font:14px Verdana, Geneva, sans-serif; background:#fc575e; color:#000; padding:5px 20px 8px 15px; margin:0;
}
.vidget22 ul{
list-style:none;padding:25px 15px;
}
.vidget22 2ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 0 5px 20px;
}
.vidget22 ul li a{
text-decoration:none; color:#000;
}
.data {style="text-align:right;color:#91908e;}
.vidget22 li {margin:5px 0 0 0;}
.footer {
float:left; font:14px Verdana, Geneva, sans-serif;
}
[/CSS]
Есть -
Желаемый конечный результат -
Подскажите, как сделать белый фон не на весь шаб, а для контента и сайтебара (как на 3 картинке) и как снести футер вниз (сейчас он сразу под контентом)
[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css"/>
<title>GRead beta</title>
</head>
<body>
<div class="main">
<div class="head">
</div>
<div class="content">
<div class="post-main">
<h1><a href="#">Welcom</a></h1>
<div class="post">
Hello, Friends.</p>GRead helps you to read book conveniently. But I will not tell a lot better to look screencast: </p>
If you have any question, send in to me: <a href="#">spirt40@gmail.com</a>
</div>
</div></div>
<div class="sitebar">
<div class="vidget">
<h2>Log in</h2>
<ul>
<form method="post" name="registration" id="registration" action="#">
<li>
<span id="text1">Username: </span>
<input type="text" name="name" id='name' />
</li>
<li>
<span id="text1">Password:</span>
<input type="password" name="password1" id="pass"/>
</li>
<div class="send-form"><li>
<input type="submit" name="submit" value="Sing up" onclick="check()" class="send-button"/> <a href="#">remember me password</a></li>
</div>
</form>
<img src=Images/bg-menu.jpg align="left">
or use OpenID: <a href="#">Google</a> <a href="#">Yahoo</a> <a href="#">other</a>
</ul>
</div>
<div class="reklama">
<div class="vidget2">
<h2>Sign in</h2>
<ul>
<form method="post" name="registration" id="registration" action="#">
<li><span id="text1">Username: </span>
<input type="text" name="name" id='name' /></li>
<li><span id="text1">E-Mail:</span>
<input type="text" name="email" id="email" /></li>
<li><span id="text1">Password:</span>
<input type="password" name="password1" id="pass"/></li>
<li>I have agree to the <a href="#">Terms:</a> <input type="checkbox" name="option" value="a4"></li>
<div class="send-form">
<li><input type="submit" name="submit" value="Sing up" onclick="check()" class="send-button"/></li>
</div>
</form>
</ul>
<div class="reklama1">
<div class="vidget22">
<h2>News</h2>
<div class="post">
Now fix bug with " ". If U have this
symbol in a book, then click to "reProcess book" in edit's book menu.</div>
<div class="data">
<h9>2009-08-27 09:18:02</h9>
</div>
<div class="post">Sorry, but now OpenID work with Google. Use standard registration form. I'm now working on this problem. Sorry, Friends!
</div>
<div class="data">
<h9>2009-08-26 19:28:27</h9>
</div>
<div class="post"> New part of article about how I was building GRead (in Russian). <a href="#">Read</a>
</div>
<div class="data">
<h9>2009-08-26 13:52:53</h9>
</div>
</div></div></div></div></div>
<div class="footer">
Legal:© 2009 / <a href="#">Terms</a> / <a href="#">About</a> / <a href="#">Contact</a>
</div></div>
</body>
</html>
[/HTML]
[CSS]@charset "utf-8";
/* CSS Document */
* { padding:0; margin:0;}
body {background:#e7e7df url(Images/bg-body.jpg) left top no-repeat;
}
.main {
width:1050px; margin:0 auto;}
.head{
height:40px;}
.content-main{
background:#fffdfd; overflow:hidden;
}
.content{
width:730px; float:right; margin:15px 15px 15px 0;
}
.post-main{
background:#ffffff; margin:0;
}
.post-main h1{
font:14px Verdana, Geneva, sans-serif;color:;background:#4ebbff;
padding:5px 20px 8px 15px; margin:0;
}
.post-main h1 a{
font: normal 14px Verdana, Geneva, sans-serif;color:#000000;text-decoration:none;
}
.post-main h1 a:hover{
font: normal 14px Verdana, Geneva, sans-serif;color:#000000;text-decoration:underline;
}
.imgstyle{
float:left; margin:0;
}
.post{
margin:0;
}
.post p{
font:12px Verdana, Geneva, sans-serif;color:#000; margin:0;
}
.post p a{
color:#423e3e; text-decoration:underline;
}
.sitebar{
width:275px; float:left; margin:15px 15px 15px 15px;
}
.vidget{
background:#ffffff; margin:0;
}
.vidget h2{
font:14px Verdana, Geneva, sans-serif; background:#66cc9a; color:#000;
padding:5px 20px 8px 15px; margin:0;
}
.vidget ul{
list-style:none;padding:10px 10px;
}
.vidget li {margin:5px 0 0 0;}
.reklama{width:275px; float:left; margin:15px auto;
}
.vidget2 {
background:#ffffff; margin:0;
}
.vidget2 h2{
font:14px Verdana, Geneva, sans-serif; background:#f3a950; color:#000; padding:5px 20px 8px 15px; margin:0;
}
.vidget2 ul{
list-style:none;padding:10px 10px;
}
.vidget2 2ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 5px 5px 20px;
}
.vidget2 ul li a{
text-decoration:none; color:#000;
}
.vidget2 li {margin:5px 0 0 0;}
.reklama1 {width:275px; float:left; margin:15px auto ;
}
.vidget22 {
background:#ffffff; margin:0;
}
.vidget22 h2{
font:14px Verdana, Geneva, sans-serif; background:#fc575e; color:#000; padding:5px 20px 8px 15px; margin:0;
}
.vidget22 ul{
list-style:none;padding:25px 15px;
}
.vidget22 2ul li{
font:14px Verdana, Geneva, sans-serif; color:#000; padding:5px 0 5px 20px;
}
.vidget22 ul li a{
text-decoration:none; color:#000;
}
.data {style="text-align:right;color:#91908e;}
.vidget22 li {margin:5px 0 0 0;}
.footer {
float:left; font:14px Verdana, Geneva, sans-serif;
}
[/CSS]
Изменено:
Dark_Semi - 2 Апреля 2012 16:08