Notice
Recent Posts
Recent Comments
Link
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
Tags
more
Archives
Today
Total
관리 메뉴

WON.dev

chapter07 : border 본문

WEB.CSS

chapter07 : border

GAWON 2023. 5. 18. 09:27
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>border</title>
<style type="text/css">
/*

border : 테두리
1) border-style: solid(실선), double(이중실선), dotted(점선), dashed(대시선)
2) border-color
3) border-width: 테두리 두께, thin(얇은선), medium(중간선), thick(굵은선)
4) border-radius: 테두리 둥글게 다듬기

```
	* 상하좌우 전체의 border style과 width를 동시에 적용
		ex) border : 1px solid red

*/

div{
	width: 500px;
	height: 250px;
}

```

</style>
</head>
<body>
<div style="border-style: double">
이중실선 : border-style: double
</div>
<br/>

```
<div style="border-style: solid; border-width: 5px">
	네 테두리 모두 5px : border-width: 5px
</div>
<br/>

<div style="border-style: solid; border-width: 5px 20px">
	상하 테두리  5px, 좌우 테두리 20px : border-width: 5px 20px
</div>
<br/>

<div style="border-style: solid; border-width: 5px 20px 40px">
	상 테두리  5px, 좌우 테두리 20px, 하 테두리 40px : border-width: 5px 20px 40px
</div>
<br/>

<div style="border-style: solid; border-width: 5px 20px 35px 50px">
	상 테두리  5px, 우 테두리 20px, 하 테두리 35px 좌 테두리 50px: border-width: 5px 20px 35px 50px	<br />
	12시 방향부터 시계방향으로 적용된다.
</div>
<br/>

<div style="border-style: solid; border-width: 0 0 0 20px">
	좌 테두리만 20px :  border-width: 0 0 0 20px
</div>
<br />

<div style="background:tomato; border-radius: 5px ">
	배경색 tomato, 모든 모서리 5px 곡률 조정 : <br/>
	background:tomato; border-radius: 5px <br />
</div>
<br />

<div style="background:orange; border-radius: 5px 20px">
	border-radius: 5px 20px
</div>
<br />

<div style="background:yellow; border-radius: 5px 20px 35px 50px">
	border-radius: 5px 20px 35px 50px <br/>
</div>
<br />

<div style="background:yellowgreen; border-radius: 35px 35px 0 0">
	border-radius: 35px 35px 0 0 <br/>
</div>
<br />

<div style="background:green; border-radius: 0 0 35px 35px">
	border-radius: 0 0 35px 35px <br/>
	11시 방향 모서리부터 시계방향으로 적용된다.
</div>
<br />

```

</body>
</html>

 

'WEB.CSS' 카테고리의 다른 글

chapter09 : margin  (0) 2023.05.18
chapter08 : padding  (0) 2023.05.18
chapter06 : background  (0) 2023.05.18
chapter05 : background  (0) 2023.05.18
chapter04 : external  (0) 2023.05.18