###前提・実現したいこと
id="header"を左に表示し、その右に2*2でid="imgroll"を並べたいのですが、
imgrollがうまく表示されず困っています。
以下の画像のようにしたいです。
現在headerの右にid="imgarea"のみ表示されています。
###該当のソースコード
html
1<div id="wrap"> 2 <div id="header"> 3 <div id="title"> 4 <img id="titleimage" src="../images/title.png"> 5 <img id="titlemessage" src="../images/image.png"> 6 </div> 7 </div> 8 <div id="imgarea"> 9 <div id="imgroll topleft"> 10 a 11 </div> 12 <div id="imgroll topright"> 13 b 14 </div> 15 <div id="imgroll bottomleft"> 16 c 17 </div> 18 <div id="imgroll bottomright"> 19 d 20 </div> 21 </div> 22 23 24</div><!--wrap-->
css
1*{ 2 margin: 0; 3 padding: 0; 4} 5 6#wrap{ 7 width:1050px; 8} 9 10/*sum 1050px*/ 11#header{ 12 float: left; 13 width:500px; 14 height:250px; 15 background-color: #999; 16} 17 18#title{ 19 text-align:center; 20 21} 22 23#titleimage{ 24 width:500px; 25 height:83px; 26} 27 28#titlemessage{ 29 width:380px; 30 height:48px; 31} 32 33 34#cookimgarea{ 35 float:left; 36 width:550px; 37 height:250px; 38 background-color: #f00; 39} 40 41#imgroll{ 42 float:left; 43 width:275px; 44 height:125px; 45 background-color: #555; 46} 47#imgroll#topleft{ 48 background-color: #f0f; 49} 50#topright{ 51 background-color: #0ff; 52} 53#bottomright{ 54 background-color: #00f; 55} 56#bottomright{ 57 background-color: #000; 58}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。