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
59 changes: 59 additions & 0 deletions dz3(justification1).html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Выравнивание, задание 1</title>
<style type="text/css">
.element1{
width: 100px;
height: 100px;
background-color: red;
margin: 0 auto;
}
.element2{
width: 100px;
height: 100px;
background-color: orange;

}
.element3{
width: 100px;
height: 100px;
background-color: yellow;
position: relative;
left: 50%;
margin-left: -50px;
}
.element4{
width: 100px;
height: 100px;
background-color: green;
}
.wrap{
margin-top: 50px;
}
</style>
</head>
<body>
<div class="wrap">
<div class="element1"></div>
</div>

<div class="wrap">
<table width="100%">
<tr>
<td align="center"><div class="element2"></div></td>
</tr>
</table>
</div>

<div class="wrap">
<div class="element3"></div>
</div>

<div class="wrap">
<center><div class="element4"></div></center>
</div>

</body>
</html>
44 changes: 44 additions & 0 deletions dz3(justification2).html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Выравнивание, задание 2</title>
<style type="text/css">
.element1{
display: inline-block;
height: 100px;
background-color: red;
}
.element2{
height: 100px;
background-color: orange;
}
.element3{
height: 100px;
background-color: yellow;
display: inline-block;
}
.wrap{
margin-top: 50px;
}
</style>
</head>
<body>
<div class="wrap" style="text-align: center;">
<div class="element1">Какой-нибудь текст</div>
</div>

<div class="wrap">
<center><table>
<tr>
<td align="center"><div class="element2">Какой-нибудь текст</div></td>
</tr>
</table></center>
</div>

<div class="wrap">
<center><div class="element3">Какой-нибудь текст</div></center>
</div>

</body>
</html>
27 changes: 27 additions & 0 deletions dz3(layout1).html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Раскладка, задание 1</title>
<style type="text/css">
html, body {
height: 100%;
}
.column1{
width :300px;
height: 100%;
background-color: orange;
float: left;
}
.column2{
height: 100%;
background-color: yellow;
margin-left: 300px;
}
</style>
</head>
<body>
<div class="column1"></div>
<div class="column2"></div>
</body>
</html>
28 changes: 28 additions & 0 deletions dz3(layout2).html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>���������, ������� 2</title>
<style type="text/css">
html, body {
height: 100%;
}
.column1{
height: 100%;
min-width: 150px;
width: 23.4375%;
max-width: 300px;
background-color: orange;
float: left;
}
.column2{
height: 100%;
background-color: yellow;
}
</style>
</head>
<body>
<div class="column1"></div>
<div class="column2"></div>
</body>
</html>