<body >
	<div id="divParent1">
		<div id="div1">가나다</div>
		<div id="div2">가나다</div>
		<div id="div3">가나다</div>
	</div>
	<div id="divParent2">
		<div id="div4">가나다</div>
		<div id="div5">가나다</div>
		<div id="div6">가나다</div>
		<div id="div7">가나다</div>
	</div>
</body>
		body > div {
			display:inline-block;
		}

		body > div > div  {
			width:50px;
			margin:20px;
			
		}

		#divParent1 {
			border : double #100063;
		}
		#divParent1 > div {
			float:left;
		}

		#divParent2 {
			border : double #00503A;
		}
		
		#div1{background:#ff0000;}
		#div2{background:#FF6600;}
		#div3{background:#FFFF00;}
		#div4{background:#00CC00;}
		#div5{background:#0033FF;}
		#div6{background:#003399;}
		#div7{background:#9933FF;}
Rerun