forked from cripi-interface-development/dz3-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdz3(justification1).html
59 lines (54 loc) · 1.02 KB
/
dz3(justification1).html
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
<!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>