forked from yandex-shri-ekb/4-layout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2_transform.html
More file actions
44 lines (42 loc) · 789 Bytes
/
2_transform.html
File metadata and controls
44 lines (42 loc) · 789 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>
<title>Transform</title>
<meta charset="utf-8">
<style>
html,
body
{
margin: 0;
height: 100%;
width: 100%;
display: block;
}
h1
{
text-align: center;
}
.main
{
padding: 20px;
border: 1px solid #f00;
max-height: 90%;
max-width: 100%;
overflow: auto;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);*/
}
</style>
</head>
<body>
<div class="main" contenteditable="true">
<h1>Transform</h1>
Ширина и высота подстраиваются под контент
</div>
</body>
</html>