CSS 둥근 모서리 border-radius 속성

Jmnote (토론 | 기여)님의 2021년 10월 29일 (금) 20:16 판 (→‎예시 2)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
CSS 둥근 모서리
rouned rect 스타일
둥근 모서리 DIV
모서리가 둥근 보더

1 예시 1[ | ]

html
Copy
<style>
.rounded {
  background: silver;
  height: 50px; width: 200px;
}
</style>
<div class='rounded'>둥근 모서리</div>
html
Copy
<style>
.rounded {
  background: silver;
  height: 50px; width: 200px;
  border-radius: 15px;
}
</style>
<div class='rounded'>둥근 모서리</div>

2 예시 2[ | ]

html
Copy
<style>
.rounded {
  width: 200px;
  background-color: #bdf;
  border: 2px solid #1bf;
  padding: 0.5rem;
  line-height: 1rem;
}
</style>
<div class='rounded'>둥근 모서리 테두리</div>
html
Copy
<style>
.rounded {
  width: 200px;
  background-color: #bdf;
  border: 2px solid #1bf;
  padding: 0.5rem;
  line-height: 1rem;
  border-radius: 0.5rem;
}
</style>
<div class='rounded'>둥근 모서리 테두리</div>

3 같이 보기[ | ]

4 참고[ | ]

편집자 J Jmnote 115.93.33.174 Jmnote bot