-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathborder.html
62 lines (53 loc) · 1.97 KB
/
border.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
62
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>边框 | www.waylau.com</title>
<meta name="description" content="边框">
<meta name="author" content="Way Lau, www.waylau.com"/>
<meta name="viewport" content="width=device-width">
<link rel="shortcut icon" href="/favicon.ico">
<style>
.border-radius {
border: 2px solid;
font-size: 14px;
color: #ffffff;
font-weight: bold;
padding: 10px;
background: #6AAFCF;
border-radius: 25px;
-moz-border-radius: 25px; /* For Firefox Browser */
-webkit-border-radius: 25px; /* For Safari and Google Chrome Browser */
-o-border-radius: 25px /* For Opera Browser */
}
.box-shadow {
font-size: 14px;
color: #ffffff;
font-weight: bold;
padding: 10px;
background: #6AAFCF;
-moz-box-shadow: 15px 15px 5px #888245; /* For Firefox/Mozilla */
-webkit-box-shadow: 15px 15px 5px #888245; /* For Google Chrome and Safari */
-o-box-shadow: 15px 15px 5px #888245; /* For Opera */
box-shadow: 15px 15px 5px #888245;
}
.border-image {
border-width: 15px;
-moz-border-image: url(/images/border.png) 30 30 round; /* Firefox */
-webkit-border-image: url(/images/border.png) 30 30 round; /* Safari and Chrome */
-o-border-image: url(/images/border.png) 30 30 round; /* Opera */
border-image: url(/images/border.png) 30 30 round;
}
</style>
<body>
<div class="border-radius">
With the help of border-radius properties, we can make the rounded corners border.
</div>
<div class="box-shadow">
With the help of box-shadow properties, we can create the shadow for a box.
</div>
<div class="border-image">
You can see the customized border. This could be either *.png or *.jpg format.
</div>
</body>
</html>