summaryrefslogtreecommitdiff
path: root/Base/res/html/misc/border-radius.html
blob: 9cea43b6fcc9f55701cef8ab78a1d20d716d6539 (plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!DOCTYPE html>
<html>

<head>
    <style>
        .box {
            width: 50px;
            height: 50px;
        }

        .box-1 {
            border: 1px solid black;
            border-radius: 10px;
        }

        .box-1-1 {
            border: 1px solid black;
            border-radius: 5px 10px 15px 20px;
        }

        .box-1-5 {
            border: 1px solid black;
            border-radius: 20px;
        }

        .box-1-6 {
            border: 1px solid black;
            border-top-width: 1px;
            border-right-width: 5px;
            border-bottom-width: 10px;
            border-left-width: 12px;
            border-radius: 20px;
        }

        .box-2 {
            border: 1px solid black;
            border-top-left-radius: 10px;
        }

        .box-1-7 {
            border: 5px solid black;
            border-radius: 15px;
        }

        .box-1-8 {
            border: 20px solid black;
            border-radius: 10px;
        }

        .box-1-9 {
            border: 20px inset black;
            border-radius: 10px;
        }

        .box-1-10 {
            border: 20px outset black;
            border-radius: 10px;
        }

        .box-3 {
            border: 1px solid black;
            border-top-right-radius: 10px;
        }

        .box-4 {
            border: 1px solid black;
            border-bottom-right-radius: 10px;
        }

        .box-5 {
            border: 1px solid black;
            border-bottom-left-radius: 10px;
        }

        .box-6 {
            width: 200px;
            height: 200px;
            border: 1px solid black;
            border-radius: 75px;
        }

        .box-7 {
            background-color: magenta;
            border-radius: 10px;
        }

        .box-7-1 {
            width: 200px;
            height: 200px;
            background-color: magenta;
            border-radius: 25px 50px 75px 100px;
        }

        .box-7-2 {
            width: 200px;
            height: 200px;
            background-color: magenta;
            border-radius: 100px 75px 50px 25px;
        }

        .box-8 {
            background-color: magenta;
            border-radius: 20px;
        }

        .box-9 {
            background-color: magenta;
            border-radius: 15px;
        }

        .box-10 {
            background-color: magenta;
            border-top-left-radius: 10px;
        }

        .box-11 {
            background-color: magenta;
            border-top-right-radius: 10px;
        }

        .box-12 {
            background-color: magenta;
            border-bottom-right-radius: 10px;
        }

        .box-13 {
            background-color: magenta;
            border-bottom-left-radius: 10px;
        }

        .box-14 {
            background-color: lime;
            border: 1px solid black;
            border-radius: 500px;
        }

        .box-15 {
            background-color: red;
            border: 1px solid black;
            border-radius: 500px;
        }
    </style>
</head>

<body>
    <h3>Border-radius</h3>
    <p>The boxes are 50x50px and have a background-color</p>
    <em>All round 10px</em>
    <div class="box box-7"></div>
    <br>
    <em>All round 25,50,75,100px</em>
    <div class="box box-7-1"></div>
    <br>
    <em>All round 100,75,50,25px</em>
    <div class="box box-7-2"></div>
    <br>
    <em>All round 20px</em>
    <div class="box box-8"></div>
    <br>
    <em>All round 15px 5px thick</em>
    <div class="box box-9"></div>
    <br>
    <em>top-left 10px</em>
    <div class="box box-10"></div>
    <br>
    <em>top-right 10px</em>
    <div class="box box-11"></div>
    <br>
    <em>bottom-right 10px</em>
    <div class="box box-12"></div>
    <br>
    <em>bottom-left 10px</em>
    <div class="box box-13"></div>
    <br>
    <br>

    <p>The boxes are 50x50px</p>
    <em>All round 10px</em>
    <div class="box box-1"></div>
    <br>
    <em>All round 5,10,15,20px</em>
    <div class="box box-1-1"></div>
    <br>
    <em>All round 20px</em>
    <div class="box box-1-5"></div>
    <br>
    <em>All round 20px, border widths 1px 5px 10px 12px</em>
    <div class="box box-1-6"></div>
    <br>
    <em>All round 15px 5px thick</em>
    <div class="box box-1-7"></div>
    <br>
    <em>All round 10px 20px thick</em>
    <div class="box box-1-8"></div>
    <br>
    <em>All round 10px 20px thick inset</em>
    <div class="box box-1-9"></div>
    <br>
    <em>All round 10px 20px thick outset</em>
    <div class="box box-1-10"></div>
    <br>
    <em>top-left 10px</em>
    <div class="box box-2"></div>
    <br>
    <em>top-right 10px</em>
    <div class="box box-3"></div>
    <br>
    <em>bottom-right 10px</em>
    <div class="box box-4"></div>
    <br>
    <em>bottom-left 10px</em>
    <div class="box box-5"></div>
    <br>
    <br>

    <p>200px box, 75px radius</p>
    <div class="box box-6"></div>
    <br>
    <br>

    <p>Test truncation:</p>
    <em>Box is 50x50, border-radius is 500px</em>
    <div class="box box-14"></div>
    <div class="box box-15"></div>
    <br>
    <br>

</body>

</html>