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

質問編集履歴

2

ソース変更

2017/08/09 05:29

投稿

scoa
scoa

スコア66

title CHANGED
File without changes
body CHANGED
@@ -16,9 +16,9 @@
16
16
  <title>サンプル</title>
17
17
 
18
18
  <style>
19
- .table { display:table; width:960px; height:300px; background:#bbb;text-align:center; }
19
+ .table { display:table; width:600px; height:200px; background:#bbb; text-align:center; }
20
20
  .table ul { display:table-cell; vertical-align:middle; }
21
- .table li { display:inline-block; padding:10px; border:2px #fff solid; }
21
+ .table li { display:inline-block; padding:20px; background:#fff; }
22
22
  </style>
23
23
 
24
24
  </head>

1

ソースの追加

2017/08/09 05:29

投稿

scoa
scoa

スコア66

title CHANGED
File without changes
body CHANGED
@@ -7,5 +7,39 @@
7
7
 
8
8
  ![サンプル](4a48b4714358ec2e837c40f9187f817e.gif)
9
9
 
10
+ ```HTML
11
+ <!DOCTYPE html>
12
+ <html lang="ja">
13
+ <head>
14
+ <meta charset="Shift_JIS">
15
+ <meta name="robots" content="noindex">
16
+ <title>サンプル</title>
17
+
18
+ <style>
19
+ .table { display:table; width:960px; height:300px; background:#bbb;text-align:center; }
20
+ .table ul { display:table-cell; vertical-align:middle; }
21
+ .table li { display:inline-block; padding:10px; border:2px #fff solid; }
22
+ </style>
23
+
24
+ </head>
25
+ <body>
26
+
27
+
28
+
29
+ <div class="table">
30
+ <ul>
31
+ <li>ほげほげほげ</li>
32
+ <li>ほげほげほげ<br>ほげほげほげ</li>
33
+ <li>ほげほげほげ<br>ほげほげほげ<br>ほげほげほげ</li>
34
+ </ul>
35
+ </div>
36
+
37
+
38
+
39
+ </body>
40
+ </html>
41
+ ```
42
+
43
+
10
44
  恐れ入りますが、
11
45
  ご教示の程よろしくお願いいたします。