-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdisplay.html
More file actions
44 lines (37 loc) · 878 Bytes
/
display.html
File metadata and controls
44 lines (37 loc) · 878 Bytes
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Display</title>
<style>
body {
font-size: 40px;
color: #fff;
background-color: coral;
}
ul { padding: 0}
div { background-color: dodgerblue;}
span {background-color: purple;}
li { background-color: seagreen; }
div, span, li {
width: 50%;
height: 80px;
padding-top: 30px;
text-align: center;
display: block; /* each one line */
display: inline; /* all in one line */
display: inline-block; /* distribuit */
}
</style>
</head>
<body>
<div>Texto 1</div>
<span>Texto 2</span>
<span>Texto 3</span>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html>