teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

テスト状況を追記

2017/02/02 17:54

投稿

LibertyBell3
LibertyBell3

スコア1084

answer CHANGED
@@ -21,4 +21,50 @@
21
21
  vertical-align:bottom;
22
22
  }
23
23
  ```
24
- しちゃうと思います。
24
+ しちゃうと思います。
25
+
26
+ 追記:当方でのテスト状況
27
+
28
+ ```HTML
29
+ <div id="box">
30
+ <dl>
31
+ <dt><img src="images/img01.png"></dt>
32
+ <dd><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p><p>ほげほげほげほ</p></dd>
33
+ </dl>
34
+ </div>
35
+ ```
36
+ ```CSS
37
+ #box {
38
+ width:500px;
39
+ text-align:left;
40
+ }
41
+ #box dl {
42
+ display:table;
43
+ width:100%;
44
+ }
45
+ #box dl dt,#box dl dd {
46
+ display:table-cell;
47
+ width:50%;
48
+ }
49
+ #box dl dt {
50
+ background-color:#CFF;
51
+ vertical-align:bottom;
52
+ text-align:center;
53
+ }
54
+ #box dl dt img {
55
+ max-width:100%;
56
+ height:auto;
57
+ }
58
+ #box dl dd {
59
+ background-color:#FFC;
60
+ vertical-align:bottom;
61
+ }
62
+ #box dl dd p {
63
+ line-height:22px;
64
+ font-size:16px;
65
+ }
66
+ #box dl dd p:last-of-type {
67
+ margin-bottom:-3px;
68
+ }
69
+ ```
70
+ 画像は、137px/256pxで確認、どっちもbottom設定。