나는 100 %로 내 DIV의 높이를 확장하려는, 그러나 그것은 작동하지 않습니다 :플로팅 div 높이가 100 %가 아닌 이유는 무엇입니까?
지금까지, 내 코드는 다음과 같습니다
.add{
border:1px solid #ddd;
display:block;
float:right;
margin:0 0 10px 10px;
padding:10px;
height:100%;
}
그리고 HTML :
<div>
<div class="add">
<div style="width:100px;height:400px;background:#ccc;"></div>
</div>
Lorem ipsum dolor sit amet... And a lot of text here
Lorem ipsum dolor sit amet... And a lot of text here
Lorem ipsum dolor sit amet... And a lot of text here
</div>
html 구조도 제공 할 수 있습니까? – shinkou
@ shinkou, done. – ajax333221