마지막 div (클래스)가 아래로 이동하는 것을 방지하려면 어떻게해야합니까? .artist_wrap
에 margin-right
을 넣었습니다. 나는 overflow: hidden
을 넣으면 #music_videos_wrap
안에 머무를 것이라고 생각했지만 사라졌습니다. 나를 도와 줄 사람 덕분에.div 클래스 마지막 div 아래로 html CSS
HTML :
<div id="music_videos_wrap">
<div class="artist_wrap"></div>
<div class="artist_wrap"></div>
<div class="artist_wrap"></div>
<div class="artist_wrap"></div>
</div>
CSS :
#music_videos_wrap{
float:left;
margin:0 0 0 23px;
width:944px;
height: 257px;
background-color: red;
/*overflow:hidden;*/
}
.artist_wrap{
float:left;
width:190px;
height:257px;
background-color: green;
margin:0 62px 0 0;
}
[이 jsFiddle에서 뭐가 잘못을 지적 할 수 (마지막 아이보다 더 크로스 브라우저입니다) 첫 아이에 0 : 그런 식으로 당신은 여백 왼쪽을 사용할 수 있습니다 ?] (http://jsfiddle.net/hBF2x/). 현재 '진행중인'효과가 나타나지 않습니다. – Ohgodwhy
4 .artist_wrap 미안합니다. – Aldin
마지막 .artist_wrap을 "unmargin-right"할 수 있습니까? – Aldin