task 2 target
This commit is contained in:
44
style.css
44
style.css
@@ -16,14 +16,46 @@
|
|||||||
width: 640px;
|
width: 640px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#target {
|
.target {
|
||||||
|
width: 64px;
|
||||||
|
height: 64px;
|
||||||
background-color: yellow;
|
background-color: yellow;
|
||||||
border-radius: 64px;
|
border-radius: 100%;
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
border: 16px solid red;
|
|
||||||
outline: 16px solid deepskyblue;
|
|
||||||
}
|
}
|
||||||
|
.target-container{
|
||||||
|
display: flex;
|
||||||
|
position: relative;
|
||||||
|
justify-content: center;
|
||||||
|
width: 256px;
|
||||||
|
height: 256px;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.circle {
|
||||||
|
position: absolute;
|
||||||
|
border-radius: 100%;
|
||||||
|
}
|
||||||
|
.circle4 {
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
|
.circle3 {
|
||||||
|
width: 64px;
|
||||||
|
height: 64px;
|
||||||
|
background-color: red;
|
||||||
|
}
|
||||||
|
.circle2 {
|
||||||
|
width: 96px;
|
||||||
|
height: 96px;
|
||||||
|
background-color: blue;
|
||||||
|
}
|
||||||
|
.circle1 {
|
||||||
|
width: 128px;
|
||||||
|
height: 128px;
|
||||||
|
background-color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.progress {
|
.progress {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
17
target.html
Normal file
17
target.html
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>A title</title>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<link href="style.css" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="target-container">
|
||||||
|
<div class="circle circle1"></div>
|
||||||
|
<div class="circle circle2"></div>
|
||||||
|
<div class="circle circle3"></div>
|
||||||
|
<div class="circle circle4"></div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Reference in New Issue
Block a user