Ajax Loader
×
HTML
<!DOCTYPE html>
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<meta charset="utf-8">
5
<title>Задание</title>
6
</head>
7
<body>
8
<div class="container">
9
  <div class="red"></div>
10
  <div class="blue"></div>
11
  <div class="green"></div>
12
  <div class="yellow"></div>
13
</div>
14
  <a href="" title="css">www.itmathrepetitor.ru</a>
15
</body>  
16
</html>
 
CSS
body {
1
body {
2
  background-color: #008080;
3
  margin: 0;
4
  padding: 0;
5
}
6
 
7
.container {
8
  border: 3px solid black;
9
  height: 400px;
10
  width: 600px;
11
  margin: 50px auto;
12
}
13
 
14
.red {
15
  border: 3px solid black;
16
  width: 130px;
17
  height: 90px;
18
  margin: 40px;
19
  background-color: red;
20
}
21
 
22
.blue {
23
  border: 3px solid black;
24
  width: 130px;
25
  height: 180px;
26
  margin: 40px;
27
  background-color: blue;
28
}
29
 
30
.green {
31
  border: 3px solid black;
32
  width: 330px;
33
  height: 200px;
34
  margin: 40px;
35
  background-color: green;
36
  float: right;
37
  transform: translateY(-400px);
38
}
39
 
40
.yellow {
41
  border: 3px solid black;
42
  width: 330px;
43
  height: 80px;
44
  background-color: yellow;
45
  margin: 40px;
46
  float: right;
47
  transform: translateY(-450px); 
48
}
49
 
50
a {
51
  text-decoration: none;
52
  font-size: 18px;
53
  font-weight: bold;
54
  color: black;
55
  bottom: 0;
56
  position: absolute;
57
  
58
  
59
}
 

Разноцветные блоки

CSSDeck G+