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

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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 827 | HTML | 8년 전 | 1580 | ||
| 826 | HTML | 8년 전 | 2313 | ||
| 825 | HTML | 8년 전 | 2107 | ||
| 824 | HTML | 8년 전 | 1925 | ||
| 823 | HTML | 8년 전 | 2424 | ||
| 822 | HTML | 8년 전 | 1960 | ||
| 821 | HTML | 8년 전 | 2580 | ||
| 820 | HTML | 8년 전 | 2585 | ||
| 819 | HTML | 8년 전 | 2508 | ||
| 818 | HTML | 8년 전 | 1716 | ||
| 817 | HTML | 8년 전 | 1708 | ||
| 816 | HTML | 8년 전 | 1450 | ||
| 815 | HTML | 8년 전 | 1470 | ||
| 814 | HTML | 8년 전 | 2070 | ||
| 813 | HTML | 8년 전 | 1676 | ||
| 812 | HTML | 8년 전 | 1750 | ||
| 811 | HTML | 8년 전 | 1757 | ||
| 810 | HTML | 8년 전 | 2395 | ||
| 809 | HTML | 8년 전 | 1787 | ||
| 808 | HTML | 8년 전 | 2196 | ||
| 807 | HTML | 8년 전 | 1970 | ||
| 806 | HTML | 8년 전 | 2002 | ||
| 805 | HTML | 8년 전 | 1955 | ||
| 804 | CSS | 8년 전 | 2340 | ||
| 803 | CSS | 8년 전 | 2246 | ||
| 802 | CSS | 8년 전 | 2337 | ||
| 801 | HTML | 8년 전 | 1953 | ||
| 800 | HTML | 8년 전 | 1807 | ||
| 799 | 기타 | 8년 전 | 2369 | ||
| 798 | HTML | 8년 전 | 1997 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기