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

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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 707 | CSS | 12년 전 | 12406 | ||
| 706 | 기타 | 12년 전 | 5101 | ||
| 705 | CSS | 12년 전 | 5678 | ||
| 704 | 기타 | 12년 전 | 12113 | ||
| 703 | 웹접근성 | 12년 전 | 10095 | ||
| 702 | 기타 | 12년 전 | 5152 | ||
| 701 | CSS | 12년 전 | 3118 | ||
| 700 | 반응형 |
kiplayer
|
12년 전 | 6806 | |
| 699 | CSS |
kiplayer
|
12년 전 | 6429 | |
| 698 | 웹접근성 |
|
12년 전 | 36937 | |
| 697 | HTML | 12년 전 | 4345 | ||
| 696 | HTML | 12년 전 | 8079 | ||
| 695 | CSS | 12년 전 | 5456 | ||
| 694 | HTML | 12년 전 | 5823 | ||
| 693 | CSS | 12년 전 | 3896 | ||
| 692 | 웹접근성 |
프로프리랜서
|
13년 전 | 3788 | |
| 691 | 웹접근성 |
|
13년 전 | 12475 | |
| 690 | CSS | 13년 전 | 4229 | ||
| 689 | 웹접근성 | 13년 전 | 5878 | ||
| 688 | CSS | 13년 전 | 4931 | ||
| 687 | HTML | 13년 전 | 7389 | ||
| 686 | CSS | 13년 전 | 5849 | ||
| 685 | 기타 | 13년 전 | 10616 | ||
| 684 | HTML |
후라보노보노
|
13년 전 | 4814 | |
| 683 | HTML | 13년 전 | 4349 | ||
| 682 | 기타 |
|
13년 전 | 3523 | |
| 681 | CSS | 13년 전 | 3673 | ||
| 680 | HTML | 13년 전 | 6315 | ||
| 679 | 반응형 | 13년 전 | 6598 | ||
| 678 | CSS | 13년 전 | 3823 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기