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

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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 797 | HTML | 8년 전 | 1701 | ||
| 796 | HTML | 8년 전 | 1514 | ||
| 795 | HTML | 8년 전 | 3295 | ||
| 794 | 기타 | 8년 전 | 2243 | ||
| 793 | HTML | 8년 전 | 3746 | ||
| 792 | HTML | 8년 전 | 1847 | ||
| 791 | 반응형 | 8년 전 | 2554 | ||
| 790 | HTML | 8년 전 | 10030 | ||
| 789 | HTML | 8년 전 | 5730 | ||
| 788 | CSS | 8년 전 | 2475 | ||
| 787 | 반응형 | 9년 전 | 3255 | ||
| 786 | 웹접근성 | 9년 전 | 3451 | ||
| 785 | 웹접근성 | 9년 전 | 2377 | ||
| 784 | 기타 | 9년 전 | 2380 | ||
| 783 | CSS | 9년 전 | 2236 | ||
| 782 | CSS | 9년 전 | 2405 | ||
| 781 | CSS | 9년 전 | 3941 | ||
| 780 | 반응형 | 9년 전 | 4295 | ||
| 779 | CSS | 9년 전 | 3141 | ||
| 778 | 반응형 | 9년 전 | 3276 | ||
| 777 | 반응형 | 9년 전 | 7627 | ||
| 776 | CSS | 9년 전 | 4772 | ||
| 775 | CSS | 9년 전 | 5380 | ||
| 774 | CSS | 9년 전 | 4605 | ||
| 773 | 반응형 | 9년 전 | 3593 | ||
| 772 | CSS | 9년 전 | 2980 | ||
| 771 | 웹접근성 | 9년 전 | 3520 | ||
| 770 | HTML | 9년 전 | 3732 | ||
| 769 | HTML | 9년 전 | 2367 | ||
| 768 | 9년 전 | 2388 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기