-
Notifications
You must be signed in to change notification settings - Fork 9
/
Borders and Backgrounds in CSS.html
57 lines (51 loc) · 1.76 KB
/
Borders and Backgrounds in CSS.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Borders and Backgrounds</title>
<style>
#firstpara{
height: 90px;
width:70px;
background-color:aqua;
border-color: black;
border-style:solid;
border: radius 3px;
}
#secondpara{
height:90px;
width: 70px;
background-color: blanchedalmond;
border-left:2px solid rgb(45, 86,45);
border-right:2px solid rgb(34, 12, 89);
border-bottom:2px solid rgb(23, 34, 45);
border-top-left-radius:3px;
border-top-right-radius:5px;
border-bottom-left-radius:3px;
border-bottom-right-radius:5px;
}
#thirdpara{
height:220px;
width: 430px;
background-image: url("https://avatars.mds.yandex.net/i?id=84dbd50839c3d640ebfc0de20994c30d-4473719-images-taas-consumers&n=27&h=480&w=480");
background-repeat: no-repeat;
/*repeat x and repeat y will make it repeat it in x-axis and y-axis
background-position:192px 34px; */
background-position:center;
/* background-position:bottom right;
background-position:top center;
*/
}
</style>
</head>
<body>
<h3>This is heading</h3>
<p id="firstpara"> this is first paragraph</p>
<h3>This is heading</h3>
<p id="secondpara"> this is second paragraph</p>
<h3>This is heading</h3>
<p id="thirdpara">this is third paragraph</p>
</body>
</html>