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

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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 137 | HTML | 19년 전 | 3776 | ||
| 136 | HTML |
pearly
|
19년 전 | 4131 | |
| 135 | HTML | 19년 전 | 4233 | ||
| 134 | HTML |
pearly
|
19년 전 | 4647 | |
| 133 | HTML |
|
19년 전 | 3271 | |
| 132 | HTML |
|
19년 전 | 3130 | |
| 131 | HTML |
|
19년 전 | 2804 | |
| 130 | HTML |
|
19년 전 | 3682 | |
| 129 | HTML |
|
19년 전 | 2744 | |
| 128 | HTML |
|
19년 전 | 3336 | |
| 127 | HTML |
|
19년 전 | 8590 | |
| 126 | HTML |
|
19년 전 | 2539 | |
| 125 | HTML |
|
19년 전 | 3004 | |
| 124 | HTML |
|
19년 전 | 5350 | |
| 123 | HTML |
|
19년 전 | 2925 | |
| 122 | HTML |
|
19년 전 | 2836 | |
| 121 | HTML |
|
19년 전 | 3434 | |
| 120 | HTML | 19년 전 | 3197 | ||
| 119 | HTML |
|
19년 전 | 3182 | |
| 118 | HTML | 19년 전 | 5069 | ||
| 117 | HTML |
|
19년 전 | 3646 | |
| 116 | HTML | 19년 전 | 3505 | ||
| 115 | HTML | 19년 전 | 3895 | ||
| 114 | HTML |
|
19년 전 | 3856 | |
| 113 | HTML |
|
19년 전 | 5280 | |
| 112 | HTML |
|
19년 전 | 3610 | |
| 111 | HTML | 19년 전 | 4089 | ||
| 110 | HTML |
|
19년 전 | 3515 | |
| 109 | HTML | 19년 전 | 4861 | ||
| 108 | HTML |
홀로남은자
|
19년 전 | 2976 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기