border-style: none | hidden | dashed | dotted | double | groove | inset | outest | ridge | solid
속성
<html>
<head>
<meta charset="utf-8">
<style>
div {
width: 300px;
height: 100px;
display: inline-block;
}
.box1 { border-style: solid; }
.box2 { border-style: dotted; }
.box3 { border-style: dashed; }
</style>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
</body>
</html>
border-top-width: <크기> | thin | medium | thick
border-left-width: <크기> | thin | medium | thick
border-right-width: <크기> | thin | medium | thick
border-bottom-width: <크기> | thin | medium | thick
border-width: <크기> | thin | medium | thick
종류
<html>
<head>
<meta chartset="utf-8">
<style>
.box {
width: 300px;
height: 100px;
border-style: solid;
border-width: 2px;
}
</style>
</head>
<body>
</body>
</html>
border-top-color: <색상>
border-left-color: <색상>
border-right-color: <색상>
border-bottom-color: <색상>
border-color: <색상>
종류
<html>
<head>
<meta charset="utf-8">
<style>
div {
width: 100px;
height: 100px;
display: inline-block;
border-style: dotted;
}
.box1 { border-top-color: blue; }
.box2 { border-left-color: grey; }
</style>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
</body>
</html>
border-top-left-radius: <크기> | <백분율>
border-top-right-radius: <크기> | <백분율>
border-bottom-right-radius: <크기> | <백분율>
border-bottom-left-color: <크기> | <백분율>
border-radius: <크기> | <백분율>
속성
<html>
<head>
<meta charset="utf-8">
<style>
div {
width: 100px;
height: 100px;
display: inline-block;
border-style: solid;
}
.box1 { border-radius: 10px; }
.box2 { border-top-right-radius: 10px; border-top-left-radius: 5px; }
</style>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
</body>
</html>
[CSS 기초] CSS 포지셔닝과 주요 속성들 (0) | 2021.05.01 |
---|---|
[CSS 기초] 여백을 조절하는 속성들 (0) | 2021.04.28 |
[CSS 기초] CSS와 박스 모델 (0) | 2021.04.26 |
[CSS 기초] 배경 색과 배경 이미지 (0) | 2021.04.24 |
[CSS 기초] 목록 스타일 (0) | 2021.04.23 |
댓글 영역