테두리가있는 단추 그룹
테두리가있는 단추 그룹

이 border속성을 사용하여 경계가있는 단추 그룹을 만듭니다.
예
.button {
float: left;
border: 1px solid green;
}
[전체소스]
<!DOCTYPE html>
<html>
<head>
<style>
.btn-group .button {
background-color: #4CAF50; /* Green */
border: 1px solid green;
color: white;
padding: 15px 32px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
cursor: pointer;
float: left;
}
.btn-group .button:not(:last-child) {
border-right: none; /* Prevent double borders */
}
.btn-group .button:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<h2>Bordered Button Group</h2>
<p>Add borders to create a bordered button group:</p>
<div class="btn-group">
<button class="button">Button</button>
<button class="button">Button</button>
<button class="button">Button</button>
<button class="button">Button</button>
</div>
<p style="clear:both"><br>Remember to clear floats after, or else will this p element also float next to the buttons.</p>
</body>
</html>
게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 797 | HTML | 8년 전 | 1701 | ||
| 796 | HTML | 8년 전 | 1514 | ||
| 795 | HTML | 8년 전 | 3293 | ||
| 794 | 기타 | 8년 전 | 2242 | ||
| 793 | HTML | 8년 전 | 3746 | ||
| 792 | HTML | 8년 전 | 1847 | ||
| 791 | 반응형 | 8년 전 | 2553 | ||
| 790 | HTML | 8년 전 | 10030 | ||
| 789 | HTML | 8년 전 | 5729 | ||
| 788 | CSS | 8년 전 | 2463 | ||
| 787 | 반응형 | 8년 전 | 3254 | ||
| 786 | 웹접근성 | 9년 전 | 3450 | ||
| 785 | 웹접근성 | 9년 전 | 2376 | ||
| 784 | 기타 | 9년 전 | 2380 | ||
| 783 | CSS | 9년 전 | 2236 | ||
| 782 | CSS | 9년 전 | 2405 | ||
| 781 | CSS | 9년 전 | 3941 | ||
| 780 | 반응형 | 9년 전 | 4294 | ||
| 779 | CSS | 9년 전 | 3141 | ||
| 778 | 반응형 | 9년 전 | 3275 | ||
| 777 | 반응형 | 9년 전 | 7626 | ||
| 776 | CSS | 9년 전 | 4772 | ||
| 775 | CSS | 9년 전 | 5380 | ||
| 774 | CSS | 9년 전 | 4605 | ||
| 773 | 반응형 | 9년 전 | 3591 | ||
| 772 | CSS | 9년 전 | 2980 | ||
| 771 | 웹접근성 | 9년 전 | 3519 | ||
| 770 | HTML | 9년 전 | 3731 | ||
| 769 | HTML | 9년 전 | 2367 | ||
| 768 | 9년 전 | 2387 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기