JAVA/CSS
CSS Div안에 Div 수평 수직 가운데정렬
왕왕왕왕
2015. 8. 5. 09:34
#div1 {
border: solid;
width: 500px;
height: 500px;
text-align: center;
}
#div2 {
width: 300px;
height: 300px;
border: solid;
text-align: center;
display: inline-block;
margin: 90px 0; //마진에 첫번째 px을 조정해야됨
}
#div3 {
width: 50px;
height: 50px;
border: solid;
display: inline-block;
margin: 120px 0; //여기 마진도
}