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

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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 107 | HTML |
홀로남은자
|
19년 전 | 3334 | |
| 106 | HTML | 19년 전 | 3216 | ||
| 105 | HTML |
그레이스웹
|
19년 전 | 4945 | |
| 104 | HTML |
|
19년 전 | 6287 | |
| 103 | HTML |
|
19년 전 | 5265 | |
| 102 | HTML |
|
19년 전 | 4622 | |
| 101 | HTML |
|
19년 전 | 3436 | |
| 100 | HTML |
|
19년 전 | 6187 | |
| 99 | HTML |
|
19년 전 | 5020 | |
| 98 | HTML |
|
19년 전 | 3443 | |
| 97 | HTML |
|
19년 전 | 4438 | |
| 96 | HTML | 19년 전 | 6877 | ||
| 95 | HTML | 19년 전 | 4332 | ||
| 94 | HTML | 19년 전 | 3216 | ||
| 93 | HTML | 19년 전 | 5756 | ||
| 92 | HTML | 19년 전 | 4150 | ||
| 91 | HTML |
|
19년 전 | 5178 | |
| 90 | HTML |
|
19년 전 | 3237 | |
| 89 | HTML |
|
19년 전 | 3160 | |
| 88 | HTML |
|
19년 전 | 3626 | |
| 87 | HTML | 19년 전 | 5163 | ||
| 86 | HTML | 19년 전 | 4809 | ||
| 85 | HTML | 19년 전 | 4138 | ||
| 84 | HTML |
|
19년 전 | 3492 | |
| 83 | HTML |
|
19년 전 | 3150 | |
| 82 | HTML | 19년 전 | 4917 | ||
| 81 | HTML |
|
19년 전 | 4129 | |
| 80 | HTML | 19년 전 | 4450 | ||
| 79 | HTML | 19년 전 | 3581 | ||
| 78 | HTML |
|
19년 전 | 4917 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기