-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathborder.html
56 lines (38 loc) · 1.19 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
<!Doctype html>
<html>
<head>
<style type="text/css">
p.bw1 {border-style:solid; border-width:5px}
p.bw2 {border-style:solid; border-width:medium;}
p.bw3 {border-style:solid; border-width:1px;}
p.bc1 {border-style:solid; border-color:red;}
p.bc2 {border-style:solid; border-color:#98bf21;}
p.bs
{
border-top-style:dotted;
border-right-style:solid;
border-bottom-style:dotted;
border-left-style:solid;
}
</style>
<title>CSS Border</title>
</head>
<body>
<h1>CSS Border</h1>
<h4>Border Width</h4>
<p class="bw1">Some text.</p>
<p class="bw2">Some text.</p>
<p class="bw3">Some text.</p>
<h4>Border Color</h4>
<p>Used to set the color of the border</p>
<ul>
<li>name - specify a color name, like "red"</li>
<li>RGB - specify a RGB value, like "rgb(255, 0, 0)"</li>
<li>Hex - specify a hex value, like "#ff0000"</li>
</ul>
<p class="bc1">A solid red border</p>
<p class="bc2">Asolid green border</p>
<h4>It is possible to specify different borders for different sides</h4>
<p class="bs">2 different border styles.</p>
</body>
</html>