forked from yandex-shri-ekb/4-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2_flex.html
More file actions
49 lines (46 loc) · 814 Bytes
/
2_flex.html
File metadata and controls
49 lines (46 loc) · 814 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
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>Flex</title>
<meta charset="utf-8">
<style>
html,
body
{
height: 100%;
display: block;
}
h1
{
text-align: center;
}
body
{
margin: 0;
display: flex;
display: -webkit-flex;
display: -ms-flexbox;
justify-content: center;
align-items: center;
-webkit-align-items: center;
-webkit-justify-content: center;
-ms-align-items: center;
-ms-justify-content: center;*/
}
.main
{
padding: 20px;
border: 1px solid #f00;
max-height: 90%;
max-width: 100%;
overflow: auto;
}
</style>
</head>
<body>
<div class="main" contenteditable="true">
<h1>Flex</h1>
Ширина и высота подстраиваются под контент
</div>
</body>
</html>