기본틀 - <!DOCTYPE html> <html> <head> </head> <body> </body> </html>
l------Margin------l
l----Border----l
l--Padding--l
CONTENT
footer {
text-align: center; // 글자 정렬
background-color: #1e1e1e; // 구글서치로 색상 찾을수 있음
color: #919191;
font-size: 12px;
}
.mainbox {
border: 1px solid #ebebeb; // 테두리
width: 610px;
text-align: center;
margin-left: auto;
margin-right: auto;
}
②
.box1 {
background-color: skyblue;
width: 60px;
height: 60px;
border: 5px solid black;
padding: 20px;
margin: 20px;
}
.box2 {
background-color: violet;
width: 100px;
height: 100px;
border: 5px solid purple;
}