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

이 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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 827 | HTML | 8년 전 | 1584 | ||
| 826 | HTML | 8년 전 | 2318 | ||
| 825 | HTML | 8년 전 | 2111 | ||
| 824 | HTML | 8년 전 | 1932 | ||
| 823 | HTML | 8년 전 | 2426 | ||
| 822 | HTML | 8년 전 | 1961 | ||
| 821 | HTML | 8년 전 | 2582 | ||
| 820 | HTML | 8년 전 | 2587 | ||
| 819 | HTML | 8년 전 | 2514 | ||
| 818 | HTML | 8년 전 | 1719 | ||
| 817 | HTML | 8년 전 | 1714 | ||
| 816 | HTML | 8년 전 | 1459 | ||
| 815 | HTML | 8년 전 | 1480 | ||
| 814 | HTML | 8년 전 | 2072 | ||
| 813 | HTML | 8년 전 | 1685 | ||
| 812 | HTML | 8년 전 | 1754 | ||
| 811 | HTML | 8년 전 | 1763 | ||
| 810 | HTML | 8년 전 | 2398 | ||
| 809 | HTML | 8년 전 | 1789 | ||
| 808 | HTML | 8년 전 | 2200 | ||
| 807 | HTML | 8년 전 | 1972 | ||
| 806 | HTML | 8년 전 | 2005 | ||
| 805 | HTML | 8년 전 | 1958 | ||
| 804 | CSS | 8년 전 | 2343 | ||
| 803 | CSS | 8년 전 | 2249 | ||
| 802 | CSS | 8년 전 | 2340 | ||
| 801 | HTML | 8년 전 | 1957 | ||
| 800 | HTML | 8년 전 | 1810 | ||
| 799 | 기타 | 8년 전 | 2371 | ||
| 798 | HTML | 8년 전 | 1999 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기