Task 3
This commit is contained in:
48
task-3.html
Normal file
48
task-3.html
Normal file
@@ -0,0 +1,48 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Практична робота №2. Завдання №3</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;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
<div></div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user