-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdisplay.html
69 lines (59 loc) · 1.83 KB
/
display.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
58
59
60
61
62
63
64
65
66
67
68
69
<!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>display</title>
<style>
#div1{
border: 3px solid black;
background-color: #ca2212;
display: block;
text-align: center;
}
img{
height: 72px;
margin: 6px auto;
display: block;
border-radius: 45px;
}
.sub1{
border: 3px solid black;
width: 33%;
margin:5px auto;
display: inline-block;
box-sizing: border-box;
background-color: #ebafa9;
}
#cont3{
float: right;
}
#main2{
}
</style>
</head>
<body>
<div class="main" id="div1">
<img src="https://www.w3schools.com/css/lights600x400.jpg" alt="">
<span>Ritesh's blog</span>
</div>
<div id="main2">
<div class="sub1" id="cont1">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis officiis odio dicta iusto aut officia laborum quidem eveniet magnam repellendus nihil blanditiis error assumenda odit voluptates, temporibus accusamus nostrum nam?
</p>
</div>
<div class="sub1" id="cont2">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis officiis odio dicta iusto aut officia laborum quidem eveniet magnam repellendus nihil blanditiis error assumenda odit voluptates, temporibus accusamus nostrum nam?
</p>
</div>
<div class="sub1" id="cont3">
<p>
Lorem ipsum dolor sit amet consectetur adipisicing elit. Perferendis officiis odio dicta iusto aut officia laborum quidem eveniet magnam repellendus nihil blanditiis error assumenda odit voluptates, temporibus accusamus nostrum nam?
</p>
</div>
</div>
</body>
</html>