forked from chinmay021/web-development-tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtut19.html
More file actions
48 lines (47 loc) · 1.54 KB
/
tut19.html
File metadata and controls
48 lines (47 loc) · 1.54 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Height, width, borders and backgrounds</title>
<style>
#firstPara{
background-color: red;
height: 100px;
width: 455px;
border: 2px solid green;
/* border-color: green;
border-style: solid;
border-width: 4px; */
border-radius: 10px;
}
#secondPara{
background-color: yellow;
height: 100px;
width: 455px;
border-top: 2px solid red;
border-bottom: 2px solid black;
border-left:2px solid blue;
border-right:2px solid green;
border-bottom-left-radius: 20px;
}
#thirdPara{
height: 500px;
width: 400px;
border: 2px solid red;
background-image: url('https://www.codewithharry.com/static/common/img/photo.png');
background-repeat: no-repeat;/*repeat x and repeat y will make it repeat on x and y axis. */
background-position:100px 200px; /*x axis then y */
/* background-position: center center; */
}
</style>
</head>
<body>
<h3>This is heading</h3>
<p id="firstPara">This is a paragraph</p>
<h3>This is 2nd heading</h3>
<p id="secondPara">This is my second paragraph</p>
<h3>This is 3rd heading</h3>
<p id="thirdPara">This is my third paragraph</p>
</body>
</html>