-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdraw circle, triangle, square.html
44 lines (41 loc) · 1.26 KB
/
draw circle, triangle, square.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!DOCTYPE html5>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title> رسم أشكال هندسية بواسطة HTML CSS </title>
<style>
.square{
width:100px;
height:100px;
background-color:navy;
margin-bottom:50px;
margin-left: auto;
margin-right: auto;
}
.circle{
width:100px;
height:100px;
background-color:blue;
border-radius:50%;
margin-bottom:50px;
margin-left: auto;
margin-right: auto;
}
.triangle{
width:0;
height:0;
border-left:50px solid transparent;
border-right:50px solid transparent;
border-bottom:100px solid yellowgreen;
margin-left: auto;
margin-right: auto;
}
</style>
</head>
<body>
<div class="square"></div>
<div class="circle"></div>
<div class="triangle"></div>
</body>
</html>