左上の図のようになりません。宜しくお願い致します。
html
1<!DOCTYPE html> 2<html lang="ja"> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Practice</title> 6 <link rel="stylesheet" href="default.css"> 7 </head> 8 <body> 9 10 <div class="container"> 11 <div class="box gray"> 12 Hello Hello Hello Hello Hello Hello 13 </div> 14 <div class="box silver"> 15 Hello Hello Hello 16 </div> 17 </div> 18 <div class="box orange"> 19 Hello Hello Hello Hello Hello Hello 20 </div> 21 </div> 22 </div> 23 24 </body> 25</html> 26
css
1 2.container { 3 display: table; 4 width: 300px; 5} 6.box { 7 display: table-cell; 8 9} 10.gray { background: gray; } 11.silver { background: silver; } 12.orange { background: orange; } 13
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/04/03 15:02
2017/04/03 15:05 編集
2017/04/03 15:20