세로 단추 그룹
세로 단추 그룹

display:block대신에 float:left다음과 같이 버튼을 그룹화하여 사용하십시오 .
예
.button {
display: block;
}
[전체소스]
<!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;
width: 150px;
display: block;
}
.btn-group .button:not(:last-child) {
border-bottom: none; /* Prevent double borders */
}
.btn-group .button:hover {
background-color: #3e8e41;
}
</style>
</head>
<body>
<h2>Vertical Button Group</h2>
<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>
</body>
</html>
게시판 목록
퍼블리셔팁
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 887 | HTML | 8년 전 | 2237 | ||
| 886 | HTML | 8년 전 | 1784 | ||
| 885 | HTML | 8년 전 | 2206 | ||
| 884 | HTML | 8년 전 | 2262 | ||
| 883 | HTML | 8년 전 | 2424 | ||
| 882 | HTML | 8년 전 | 2173 | ||
| 881 | HTML | 8년 전 | 2300 | ||
| 880 | HTML | 8년 전 | 2625 | ||
| 879 | HTML | 8년 전 | 1719 | ||
| 878 | HTML | 8년 전 | 1945 | ||
| 877 | HTML | 8년 전 | 1961 | ||
| 876 | HTML | 8년 전 | 2151 | ||
| 875 | HTML | 8년 전 | 1689 | ||
| 874 | HTML | 8년 전 | 2718 | ||
| 873 | HTML | 8년 전 | 2566 | ||
| 872 | HTML | 8년 전 | 2614 | ||
| 871 | HTML | 8년 전 | 2925 | ||
| 870 | HTML | 8년 전 | 2197 | ||
| 869 | HTML | 8년 전 | 2634 | ||
| 868 | HTML | 8년 전 | 2153 | ||
| 867 | HTML | 8년 전 | 1926 | ||
| 866 | HTML | 8년 전 | 1662 | ||
| 865 | HTML | 8년 전 | 1916 | ||
| 864 | HTML | 8년 전 | 2049 | ||
| 863 | HTML | 8년 전 | 1345 | ||
| 862 | HTML | 8년 전 | 1646 | ||
| 861 | HTML | 8년 전 | 1610 | ||
| 860 | HTML | 8년 전 | 1878 | ||
| 859 | HTML | 8년 전 | 1536 | ||
| 858 | HTML | 8년 전 | 1827 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기