<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>padding 예제</title>
<style>
.box1{
background-color: yellow;
padding: 10px 20px 30px 40px;
}
.box2{
background-color: blue;
color: white;
padding: 50px;
}
</style>
</head>
<body>
<div class="box1">박스1</div>
<div class="box2">박스2</div>
</body>
</html>
'괴발개발 > Html+CSS' 카테고리의 다른 글
CSS_before와 after 예제 (0) | 2021.06.09 |
---|---|
CSS_relative (0) | 2021.06.09 |
CSS_margin (0) | 2021.06.09 |
CSS_display (0) | 2021.06.09 |
CSS_border-radius (0) | 2021.06.09 |