blob: 8bfd633b2def30fad0b5c1eb0d3e87104b22ba7f (
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
|
<!doctype html>
<html><head><title>Border radius with percent units — reference</title>
<style>
div { background: green; }
.r1 { height: 20px; } .c1 { width: 20px; }
.r2 { height: 40px; } .c2 { width: 40px; }
.r3 { height: 60px; } .c3 { width: 60px; }
.r4 { height: 80px; } .c4 { width: 80px; }
.r1.c1 { border-radius: 5px / 5px; }
.r1.c2 { border-radius: 10px / 5px; }
.r1.c3 { border-radius: 15px / 5px; }
.r1.c4 { border-radius: 20px / 5px; }
.r2.c1 { border-radius: 5px / 10px; }
.r2.c2 { border-radius: 10px / 10px; }
.r2.c3 { border-radius: 15px / 10px; }
.r2.c4 { border-radius: 20px / 10px; }
.r3.c1 { border-radius: 5px / 15px; }
.r3.c2 { border-radius: 10px / 15px; }
.r3.c3 { border-radius: 15px / 15px; }
.r3.c4 { border-radius: 20px / 15px; }
.r4.c1 { border-radius: 5px / 20px; }
.r4.c2 { border-radius: 10px / 20px; }
.r4.c3 { border-radius: 15px / 20px; }
.r4.c4 { border-radius: 20px / 20px; }
</style>
</head><body>
<table>
<tr>
<td><div class="r1 c1"></div></td>
<td><div class="r1 c2"></div></td>
<td><div class="r1 c3"></div></td>
<td><div class="r1 c4"></div></td>
</tr>
<tr>
<td><div class="r2 c1"></div></td>
<td><div class="r2 c2"></div></td>
<td><div class="r2 c3"></div></td>
<td><div class="r2 c4"></div></td>
</tr>
<tr>
<td><div class="r3 c1"></div></td>
<td><div class="r3 c2"></div></td>
<td><div class="r3 c3"></div></td>
<td><div class="r3 c4"></div></td>
</tr>
<tr>
<td><div class="r4 c1"></div></td>
<td><div class="r4 c2"></div></td>
<td><div class="r4 c3"></div></td>
<td><div class="r4 c4"></div></td>
</tr>
</table>
</body></html>
|