forked from hasan-haider/html-css3-js-project-for-beginner
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheart.html
More file actions
48 lines (46 loc) · 933 Bytes
/
heart.html
File metadata and controls
48 lines (46 loc) · 933 Bytes
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
45
46
47
48
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Heart</title>
</head>
<body>
<!-- Heart Div -->
<div class="heart"></div>
</body>
<style type="text/css">
/*
Initial Code setup
to remove extra margin
set background black and
set box size to include border
*/
body{
background-color:#000;
margin:0;
box-sizing: border-box;
}
/*Heart first rectangle*/
.heart{
margin:15% auto;
transform: rotate(45deg);
background-color:#FF0000;
height:150px;
width:90px;
border-radius:50px 50px 0% 0%;
}
/*Heart Second Rectangle*/
.heart:before{
content:"";
background-color:#FF0000;
height:150px;
width:90px;
border-radius:50px 50px 0% 0%;
bottom:-30px;
transform: rotate(-90deg);
left:-30px;
position:absolute;
}
</style>
</html>