(기초)div가 왼쪽으로 쏠리는 이유
아더
안녕하세요 표준코딩 초보입니다.
div로 아래와같이 균일한 형식으로 div를 차곡차곡 쌓으려고 했는데
왼쪽으로 쏠리는 이유를 모르겠습니다. ㅠㅠ
고수님들 답변 부탁드립니다.div style=width:50%; height:70px; float:left; background-color:#F60;
div style=width:40%; height:40px; float:left; background-color:#039; margin:10px;/div
div style=width:40%; height:40px; float:right; background-color:#09F; margin:10px;/div
/div
div style=width:50%; height:70px; float:right; background-color:#36F;
div style=width:40%; height:40px; float:left; background-color:#039; margin:10px;/div
div style=width:40%; height:40px; float:right; background-color:#09F; margin:10px;/div
/div
div style= width:50%; height:70px; float:left; background-color:#F60;
div style=width:40%; height:40px; float:left; background-color:#039; margin:10px;/div
div style=width:40%; height:40px; float:right; background-color:#09F; margin:10px;/div
/div
div style=width:50%; height:70px; float:right; background-color:#36F;
div style=width:40%; height:40px; float:left; background-color:#039; margin:10px;/div
div style=width:40%; height:40px; float:right; background-color:#09F; margin:10px;/div
/div