-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathborder.html
40 lines (39 loc) · 937 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta charset = "utf-8">
<title>this is about css </title>
<style>
div{
border:1px solid red;
margin-left:70px;
}
p.abebe{
border:inherit;
margin-left: inherit;
margin-right: 30px;
}
h2{
width:400px;
margin:auto;
}
h1{
border-style:solid;
border-width:10px;
border-color: red;
margin: 40px 20px 10px 40px;
padding-left:40px
}
</style>
</head>
<body>
<h1>this is ethio programming</h1>
<h2>this is about web developement</h2>
<h3>this is bout all things that are related with web</h3>
<h2> Use of the inherit value</h2>
<p>Let the left margin be ingerited from the parent element:</p>
<div>
<p class = "abebe"> This paragrapgh has an inherited left margin (from the div element)</p>
</div>
</body>
</html>