</div> <div class="box4"><div class="box2"> <h1>ボックス2</h1> </div> <div class="box3"> <p>box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3box3</p> </div>
</div> </body> </html><h1>ボックス</h1>
body{
margin: 0;
}
.boxA:after{
content:"aiue";
display: block;
clear: both;
}
.box1{
background-color: red;
height:200px;
}
.box2{
background-color: blue;
float: left;
height:200px;
width:50%;
}
.box3{
background-color: gray;
float:left;
height:200px;
width:50%;
}
.box4{
background-color: green;
height:200px;
}
これだとbox3box3という<p></p>の部分から文字がはみでてしまいます!当方初心者ですが宜しくお願い致します。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/12/01 04:38