-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpixels.html
More file actions
43 lines (43 loc) · 1.02 KB
/
pixels.html
File metadata and controls
43 lines (43 loc) · 1.02 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pixels Unit</title>
<style>
body {
font-family: sans-serif;
padding: 20px;
background: #f5f5f5;
}
h2 {
font-size: 18px;
margin-bottom: 12px;
color: #333;
}
.box {
width: 200px;
height: 80px;
background: #4f8ef7;
color: white;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
font-size: 14px;
margin-bottom: 10px;
}
p {
font-size: 13px;
color: #666;
margin-top: 8px;
}
</style>
</head>
<body>
<h2>Pixels (px) — Fixed unit</h2>
<div class="box">200px × 80px</div>
<p>This box is always 200px wide — it never adapts to its container.</p>
<p>Try resizing the browser window. The box stays the same size.</p>
</body>
</html>