2018-01-19 03:59:58 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<style>
|
|
|
|
|
.flexVert {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.flexIntermediateHoriz {
|
|
|
|
|
display: flex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.flexInnerHoriz {
|
2023-08-13 22:06:13 +02:00
|
|
|
height: -moz-fit-content;
|
|
|
|
|
margin: 0 0 auto 0;
|
2018-01-19 03:59:58 +08:00
|
|
|
background: pink;
|
|
|
|
|
}
|
2023-08-13 22:06:13 +02:00
|
|
|
.height50pct {
|
|
|
|
|
height: -moz-fit-content;
|
|
|
|
|
margin: 0 0 auto 0;
|
|
|
|
|
background: brown;
|
|
|
|
|
}
|
|
|
|
|
.height0pct {
|
|
|
|
|
height: -moz-fit-content;
|
|
|
|
|
margin: 0 0 auto 0;
|
|
|
|
|
background: yellow;
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-19 03:59:58 +08:00
|
|
|
.spacer {
|
|
|
|
|
background: lightblue;
|
|
|
|
|
height: 200px;
|
|
|
|
|
width: 50px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="flexVert">
|
|
|
|
|
<div class="flexIntermediateHoriz">
|
|
|
|
|
<div class="flexInnerHoriz">text</div>
|
2023-08-13 22:06:13 +02:00
|
|
|
<div class="height50pct">fifty</div>
|
|
|
|
|
<div class="height0pct">zero</div>
|
2018-01-19 03:59:58 +08:00
|
|
|
<div class="spacer"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|