回答編集履歴
2
コメントを受けて追記
test
CHANGED
@@ -31,3 +31,25 @@
|
|
31
31
|
|
32
32
|
|
33
33
|
[Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/#feat=mdn-css_properties_width_fit-content)
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
### コメントを受けて追記
|
38
|
+
|
39
|
+
失礼。そっちじゃなくてこっちですね。
|
40
|
+
|
41
|
+
```css
|
42
|
+
|
43
|
+
.entry-content .l-fuki,
|
44
|
+
|
45
|
+
.entry-content .r-fuki {
|
46
|
+
|
47
|
+
/* width: calc(100% - 106px); */
|
48
|
+
|
49
|
+
width: -moz-fit-content;
|
50
|
+
|
51
|
+
width: fit-content;
|
52
|
+
|
53
|
+
max-width: calc(100% - 106px); /* これも入れておいた方がいいかも */
|
54
|
+
|
55
|
+
```
|
1
追記
test
CHANGED
@@ -5,3 +5,29 @@
|
|
5
5
|
width: max-content;
|
6
6
|
|
7
7
|
```
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
### 追記
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
`fit-content`の方がいいかもですね。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
```css
|
20
|
+
|
21
|
+
/* width: calc(100% - 82px); */
|
22
|
+
|
23
|
+
width: -moz-fit-content;
|
24
|
+
|
25
|
+
width: fit-content;
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
[Can I use... Support tables for HTML5, CSS3, etc](https://caniuse.com/#feat=mdn-css_properties_width_fit-content)
|