Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>