body background-color FFFFFF div border 2px solid red padding 5px div

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
body { background-color: #FFFFFF; }
div { border: 2px solid red;
padding: 5px; }
div.top { width:90%;
margin: 0 auto; }
div.top #logo { margin: 0px auto;
background-attachment: scroll;
background-repeat: no-repeat;
background-position: center;
background-color: transparent;
background-image: url("logo.png");
height: 80px;}
div.top #login_menu { margin-top: 5px; }
div.main { width: 90%;
margin: 2px auto; }
div.main #sidebar { float: right;
margin-top: 300px;
width: 300px; }
div.main #sidebar > div { border: 2px solid blue;
margin: 5px; }
div.main #content { float:left; }
div.footer { clear:both;
margin: 0 auto;
width: 90%; }
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
<meta http-equiv="content-style-type" content="text/css"/>
<link rel="stylesheet" href="main.css" type="text/css"/>
<link rel="shortcut icon" href="/static/favicon.ico" />
<title>{% block title %}Sev-roller-.ru Сайт севатопольских роллеров{% endblock %}</title>
</head>
<body>
<div class="top">
<div id="logo">
</div>
<div id="login_menu">
{% if user.is_authenticated() %}
<a href="/accounts/{{ user.login }}">{{ user.login }}</a> <a href="/accounts/logout/">(Выйти)</a>
{% else %}
<a href="/accounts/login/">Войти</a> <a href="/accounts/registration/">Регистрация</a>
</div>
</div>
<div class="main">
<div id="content">
{% block content %}
{% endblock %}
</div>
<div id="sidebar">
<div id="category">
{% block category %}
Категорий нет
{% endblock %}
</div>
<div id="comments">
{% block comments %}
Комментариев нет
{% endblock %}
</div>
</div>
</div>
<div class="footer">
Сделано все пиздатым aliens B:)
</div>
</body>
</html>