-
Notifications
You must be signed in to change notification settings - Fork 0
/
circleImage.html
61 lines (54 loc) · 1.2 KB
/
circleImage.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Circular Image Using CSS</title>
<style>
html {
background: #000;
}
#cropped {
height: 250px;
width: 250px;
border-radius: 50%;
}
#gradient {
height: 270px;
width: 270px;
background: linear-gradient(to right, #04FFC3, #0955E2);
border-radius: 70%;
display: flex;
justify-content: center;
align-items: center
}
#notCropped {
height: 250px;
width: 250px;
}
#centered {
display: flex;
justify-content: center;
align-items: center
}
</style>
</head>
<body>
<div id="centered">
<div id="gradient">
<img id="cropped" src="sampleImage.jpg" alt="Sample Image">
</div>
</div>
<div id="centered">
<h3 style="color: #fff"> Image Cropped Into Circle</h3>
</div>
<div id="centered">
<div id="gradient" style="border-radius: 0% !important">
<img id="notCropped" src="sampleImage.jpg" alt="Sample Image">
</div>
</div>
<div id="centered">
<h3 style="color: #fff"> Original Image</h3>
</div>
</body>
</html>