uulog

hr 요소의 CSS 디자인 샘플 12가지

실선

hr { border-top: 1px solid #bbb; }


이중선

hr { border-top: 3px double #bbb; }


점선 - 대쉬

hr { border-top: 1px dashed #bbb; }


점선 - 도트

hr { border-top: 1px dotted #bbb; }


점선 - 대쉬 (배경)

hr { background-color: #fff; border-top: 2px dashed #bbb; }


점선 - 도트 (배경)

hr { background-color: #fff; border-top: 2px dotted #bbb; }


실선 (입체)

hr { border-top: 1px solid #bbb; border-bottom: 1px solid #fff; }


이중선 (입체)

hr { border-top: 1px solid #bbb; border-bottom: 1px solid #fff; } hr:after { content: ''; display: block; margin-top: 2px; border-top: 1px solid #bbb; border-bottom: 1px solid #fff; }


점선 - 대쉬 (입체)

hr { border-top: 1px dashed #bbb; border-bottom: 1px dashed #fff; }


점선 - 도트 (입체)

hr { border-top: 1px dotted #bbb; border-bottom: 1px dotted #fff; }


배경 이미지 #1

hr { height: 4px; background: url(line01.png) repeat-x 0 0; }


배경 이미지 #2

hr { height: 4px; background: url(line02.png) repeat-x 0 0; }


그림자

hr { height: 10px; border: 0; box-shadow: 0 10px 10px -10px #bbb inset; }


그라데이션

hr { height: 1px; background: #bbb; background-image: -webkit-linear-gradient(left, #eee, #777, #eee); background-image: -moz-linear-gradient(left, #eee, #777, #eee); background-image: -ms-linear-gradient(left, #eee, #777, #eee); background-image: -o-linear-gradient(left, #eee, #777, #eee); }


기타 #1

hr { border-top: 4px double #bbb; text-align: center; } hr:after { content: '\002665'; display: inline-block; position: relative; top: -15px; padding: 0 10px; background: #f0f0f0; color: #bbb; font-size: 18px; }


기타 #2

hr { border-top: 1px dashed #bbb; } hr:after { content: '\002702'; display: inline-block; position: relative; top: -12px; left: 40px; padding: 0 3px; background: #f0f0f0; color: #bbb; font-size: 18px; }


기타 #3

hr { border-top: 1px solid #bbb; text-align: center; } hr:after { content: '§'; display: inline-block; position: relative; top: -14px; padding: 0 10px; background: #f0f0f0; color: #bbb; font-size: 18px; -webkit-transform: rotate(60deg); -moz-transform: rotate(60deg); transform: rotate(60deg); }


출처
• https://www.nxworld.net/tips/hr-css-design.html

블로그의 정보

uulog

chaz.uu

활동하기