-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path13_CSS_Display.html
96 lines (85 loc) · 2.2 KB
/
13_CSS_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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS DISPLAY</title>
<style>
body{
font-family: "Comic Sans MS",sans-serif;
}
div{
padding: 10px;
margin: 10px;
}
h3{
background-color: orange;
padding: 5px;
margin: 5px;
display: inline;
}
span{
background-color: lightsalmon;
padding: 5px;
margin: 5px;
display: block;
}
a{
background-color: #55acee;
color: white;
padding: 5px;
margin: 5px;
display: block;
}
form{
background-color: dodgerblue;
padding: 5px;
margin: 5px;
}
input{
display: block;
margin: 5px;
}
h1{
display: none;
}
</style>
</head>
<body>
<!-- DISPLAY INLINE -->
<div>
<h3>HTML</h3>
<h3>CSS</h3>
<h3>JS</h3>
<h3>BS</h3>
</div>
<!-- Display Block -->
<div>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit.
<span >1. At aut beatae cum cumque dolore exercitationem facere in ipsum itaque, </span>
<span >2. iure libero maiores minus nisi odio sed temporibus totam veniam! Consequuntur!</span>
<span >3. Lorem ipsum dolor sit amet, consectetur adipisicing elit.</span>
At aut beatae cum cumque dolore exercitationem facere in ipsum itaque,
iure libero maiores minus nisi odio sed temporibus totam veniam! Consequuntur!
</p>
</div>
<!-- DISPLAY BLOCK -->
<div class="div_block">
<a href="#">Home</a>
<a href="#">About</a>
<a href="#">Contact Us</a>
<a href="#">Careers</a>
</div>
<!-- DISPLAY BLOCK -->
<div>
<form>
<input type="text" placeholder="User Name">
<input type="password" placeholder="Password">
<input type="submit">
</form>
</div>
<!-- DISPLAY NONE / HIDDEN -->
<div>
<h1>I am Hidden</h1>
</div>
</body>
</html>