This repository has been archived by the owner on May 13, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathboxes.html
70 lines (60 loc) · 1.88 KB
/
boxes.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
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<meta charset="utf-8">
<title>JGraber</title>
<style type="text/css">
.boxa {
width: 150px;
height: 150px;
border-radius: 30px;
text-align: center;
background: #ed9017; /* Old browsers */
background: -webkit-linear-gradient(-45deg, #ed9017 15%,#f6e6b4 38%,#ed9017 98%); /* Chrome10+,Safari5.1+ */
background: -ms-linear-gradient(-45deg, #ed9017 15%,#f6e6b4 38%,#ed9017 98%); /* IE10+ */
background: linear-gradient(135deg, #ed9017 15%,#f6e6b4 38%,#ed9017 98%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ed9017', endColorstr='#ed9017',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.boxb {
height: 5em;
width: 12em;
-moz-border-radius: 1em 4em 1em 4em;
border-radius: 1em 4em 1em 4em;
background-color: green;
text-align: center;
}
</style>
</head>
<body>
<h1>Boxes and Corners</h1>
<pre>
.boxa {
width: 150px;
height: 150px;
border-radius: 30px;
text-align: center;
background: #ed9017; /* Old browsers */
background: -webkit-linear-gradient(-45deg, #ed9017 15%,#f6e6b4 38%,#ed9017 98%); /* ChromeSafari5.1
backgrounms-linear-gradient(-45deg, #ed9017 15%,#f6e6b4 38%,#ed9017 98%); /* IE10
background: linear-gradient(135deg, #ed9017 15%,#f6e6b4 38%,#ed9017 98%); /* W3
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ed9017', endColorstr='#ed90GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
.boxb {
height: 5em;
width: 12em;
-moz-border-radius: 1em 4em 1em 4em;
border-radius: 1em 4em 1em 4em;
background-color: green;
text-align: center;
}
</pre>
<div class="boxa">
Box A
</div>
<div class="boxb">
Box B
</div>
</body>
</html>