Skip to content

Commit 909c2c1

Browse files
committed
Changing the height and the width of the circle
1 parent 729ceb2 commit 909c2c1

File tree

3 files changed

+21
-5
lines changed

3 files changed

+21
-5
lines changed

circle.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ <h1>How to create a circle using a div</h1>
1111
<div>
1212
</body>
1313
</html>
14+
.circle {
15+
width: 500px;
16+
height: 500px;
17+
}

index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Circle Example</title>
7+
<link rel="stylesheet" href="style.css">
8+
</head>
9+
<body>
10+
<div class="circle"></div>
11+
</body>
12+
</html>

style.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.blue {
2-
background-color:blue
2+
background-color:blue
33
}
44
.circle{
5-
border-radius:50%;
6-
width:300px;
7-
height:300px;
8-
}
5+
border-radius:50%;
6+
width:500px;
7+
height:500px;
8+
}

0 commit comments

Comments
 (0)