90 lines
2.0 KiB
HTML
90 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Практична робота №2. Завдання №4</title>
|
|
|
|
<style>
|
|
.container > div {
|
|
position: absolute;
|
|
width: 300px;
|
|
height: 300px;
|
|
}
|
|
|
|
.container > :nth-child(1) {
|
|
top: 0;
|
|
left: 0;
|
|
background-color: mediumturquoise;
|
|
}
|
|
|
|
.container > :nth-child(2) {
|
|
top: 150px;
|
|
left: 150px;
|
|
background-color: mediumaquamarine;
|
|
}
|
|
|
|
.container > :nth-child(3) {
|
|
top: 300px;
|
|
left: 300px;
|
|
background-color: mediumpurple;
|
|
}
|
|
|
|
.container > :nth-child(4) {
|
|
top: 450px;
|
|
left: 450px;
|
|
background-color: mediumseagreen;
|
|
}
|
|
|
|
.container > :nth-child(5) {
|
|
top: 300px;
|
|
left: 600px;
|
|
background-color: mediumturquoise;
|
|
}
|
|
|
|
.container > :nth-child(6) {
|
|
top: 150px;
|
|
left: 750px;
|
|
background-color: mediumaquamarine;
|
|
}
|
|
|
|
.container > :nth-child(7) {
|
|
top: 0;
|
|
left: 900px;
|
|
background-color: mediumpurple;
|
|
}
|
|
|
|
.container > :nth-child(8) {
|
|
top: 150px;
|
|
left: 1050px;
|
|
background-color: mediumseagreen;
|
|
}
|
|
|
|
.container > :nth-child(9) {
|
|
top: 300px;
|
|
left: 1200px;
|
|
background-color: mediumpurple;
|
|
}
|
|
|
|
.container > :nth-child(10) {
|
|
top: 450px;
|
|
left: 1350px;
|
|
background-color: mediumaquamarine;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
<div></div>
|
|
</div>
|
|
</body>
|
|
</html> |