blob: 7593db06f781d2eb52f9311405d9efb4f80251c9 (
plain)
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
|
<!DOCTYPE html>
<!--
Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/
-->
<html>
<head>
<title>CSS Reference Case</title>
<meta charset="utf-8">
<style>
.container {
width: -moz-fit-content;
}
.container > * {
border: 1px solid black;
}
.itemA {
background: purple;
}
.itemB {
background: teal;
}
.itemC {
background: blue;
}
.itemD {
background: yellow;
}
</style>
</head>
<body>
<div class="container">
<div class="itemA">itemA</div>
<div class="itemB">itemB</div>
<div class="itemC">itemC</div>
<div class="itemD">itemD</div>
</div>
</body>
</html>
|