-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflex-test.html
48 lines (40 loc) · 905 Bytes
/
flex-test.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.58.2/codemirror.min.js"></script>
<style>
html, body {
height: 100%;
margin: 0;
padding: 0;
}
.container {
height: 100%;
display: flex;
flex-direction: column;
}
.other-thing {
height: 100px;
background-color: red;
}
.textarea-wrapper {
flex: 1;
min-height: 0;
}
.textarea {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div class="container">
<div class="other-thing"></div>
<div class="textarea-wrapper">
<textarea class="textarea"></textarea>
</div>
</div>
</body>
</html>