Skip to content

Commit

Permalink
Выравнивание 1
Browse files Browse the repository at this point in the history
  • Loading branch information
mopdobopot committed Nov 6, 2012
1 parent ce161dd commit 777b80f
Show file tree
Hide file tree
Showing 4 changed files with 241 additions and 0 deletions.
85 changes: 85 additions & 0 deletions 3.1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<!DOCTYPE HTML>
<html>
<head>
<title>3.1</title>
<style>
BODY {
background: #efefef;
}
.title {
font: bold 60px Calibri;
display: block;
text-align: center;
margin-top: 50px;
}
.subtitle {
font: normal 18px Calibri;
display: block;
text-align: center;
margin-bottom: 70px;
}
.description {
font: italic 14px Calibri;
color: #99CCFF;
display: block;
text-align: center;
margin-bottom: 4px;
margin-top: 20px;
}
.center_div1 {
width: 100px;
height: 100px;
background: lightblue;
margin: 0 auto;
}
.center_div2 {
width: 100px;
height: 100px;
background: lightblue;
display: inline-block;
}
.parent_div {
width: 100%;
height: 100px;
text-align: center;
background: #ececec;
}
.center_table {
width: 100px;
height: 100px;
background: lightblue;
}
</style>
</head>
<body>
<span class="title">Äîìàøêà 3.1</span>
<span class="subtitle">Âûðàâíèâàíèå áëîêà 100õ100 ïî öåíòðó</span>

<span class="description">margin: 0 auto (ìîæíî è ïðîñòî margin: auto)</span>
<div class="center_div1"></div>

<span class="description">table align="center"</span>
<table class="center_table" align="center"><tr><td></td></tr></table>

<span class="description">
parent_div text-align:center;<br>
div display: inline-block;<br>
</span>
<div class="parent_div">
<div class="center_div2"></div>
</div>

<span class="description">
table text-align: center;<br>
td width: 1280px;<br>
div display: inline-block;<br>
</span>
<table style="text-align: center; background: #ececec">
<tr>
<td style="width: 1280px">
<div class="center_div2"></div>
</td>
</tr>
</table>
</body>
</html>
74 changes: 74 additions & 0 deletions 3.2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<!DOCTYPE HTML>
<html>
<head>
<title>3.2</title>
<style>
BODY {
background: #efefef;
}
.title {
font: bold 60px Calibri;
display: block;
text-align: center;
margin-top: 50px;
}
.subtitle {
font: normal 18px Calibri;
display: block;
text-align: center;
margin-bottom: 70px;
}
.description {
font: italic 14px Calibri;
color: #99CCFF;
display: block;
text-align: center;
margin-bottom: 4px;
margin-top: 20px;
}
.center_div2 {
height: 100px;
background: lightblue;
display: inline-block;
}
.parent_div {
width: 100%;
height: 100px;
text-align: center;
background: #ececec;
}
.center_table {
height: 100px;
background: lightblue;
}
</style>
</head>
<body>
<span class="title">Äîìàøêà 3.2</span>
<span class="subtitle">Âûðàâíèâàíèå áëîêà, ñ øèðèíîé ïî ñîäåðæèìîìó, ïî öåíòðó</span>

<span class="description">table align="center"</span>
<table class="center_table" align="center"><tr><td>Some awesome content here!</td></tr></table>

<span class="description">
parent_div text-align:center;<br>
div display: inline-block;<br>
</span>
<div class="parent_div">
<div class="center_div2">Some crazy content here!</div>
</div>

<span class="description">
table text-align: center;<br>
td width: 1280px;<br>
div display: inline-block;<br>
</span>
<table style="text-align: center; background: #ececec">
<tr>
<td style="width: 1280px">
<div class="center_div2">Some "important!" content here!</div>
</td>
</tr>
</table>
</body>
</html>
39 changes: 39 additions & 0 deletions 3.3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE HTML>
<html>
<head>
<title>3.3</title>
<style>
BODY {
background: #efefef;
}
.title {
font: bold 60px Calibri;
display: block;
text-align: center;
margin-top: 50px;
}
.subtitle {
font: normal 18px Calibri;
display: block;
text-align: center;
margin-bottom: 70px;
}
.left_column {
width: 300px;
height: 500px;
float: left;
background: lightblue;
}
.right_column {
height: 500px;
background: #CCFFFF;
}
</style>
</head>
<body>
<span class="title">Äîìàøêà 3.3</span>
<span class="subtitle">Ñòðàíèöà èç äâóõ êîëîíîê. Ëåâàÿ øèðèíîé 300px, ïðàâàÿ çàíèìàåò âñ¸ îñòàâøååñÿ ïðîñòðàíñòâî</span>
<div class="left_column"></div>
<div class="right_column"></div>
</body>
</html>
43 changes: 43 additions & 0 deletions 3.4.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE HTML>
<html>
<head>
<title>3.4</title>
<style>
BODY {
background: #efefef;
}
.title {
font: bold 60px Calibri;
display: block;
text-align: center;
margin-top: 50px;
}
.subtitle {
font: normal 18px Calibri;
display: block;
text-align: center;
margin-bottom: 70px;
}
.left_column {
min-width: 150px;
max-width: 300px;
height: 250px;
float: left;
background: lightblue;
}
.right_column {
height: 250px;
background: #CCFFFF;
}
</style>
</head>
<body>
<span class="title">Äîìàøêà 3.4</span>
<span class="subtitle">Ñòðàíèöà èç äâóõ êîëîíîê. Ëåâàÿ øèðèíîé îò 150px äî 300px, ïðàâàÿ çàíèìàåò âñ¸ îñòàâøååñÿ ïðîñòðàíñòâî</span>
<div class="left_column">Small content</div>
<div class="right_column"></div>
<br>
<div class="left_column">Larege content large content large content large content</div>
<div class="right_column"></div>
</body>
</html>

0 comments on commit 777b80f

Please sign in to comment.