blob: c664ce4ccf38f781834dfbdc4d38f8d7af57484b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<!doctype html>
<meta charset="utf-8">
<style>
.test {
border: 1px solid;
max-width: max-content;
}
span {
display: block;
background-color: green;
}
</style>
<div class="test">
<span style="width: 40px; height: 40px"></span>
</div>
<div class="test">
<span style="width: 100px; height: 100px"></span>
</div>
<div class="test">
<span style="width: 200px; height: 200px"></span>
</div>
|