2. CSS
CSS padding (패딩)
도피디
2024. 11. 17. 20:58
반응형
padding (패딩) 이란?
경계(border)로 부터 안쪽 공간이다.
<!DOCTYPE html>
<html lang="kr">
<head>
<title>The Nick Times</title>
<style>
html {
background-color: tomato;
}
body {
margin: 0;
padding: 20px;
background-color: thistle;
}
div {
height: 150px;
width: 150px;
background-color: whitesmoke;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
결과
반응형