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

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에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 1097 | CSS | 8년 전 | 2185 | ||
| 1096 | CSS | 8년 전 | 2104 | ||
| 1095 | CSS | 8년 전 | 3596 | ||
| 1094 | CSS | 8년 전 | 2282 | ||
| 1093 | CSS | 8년 전 | 1504 | ||
| 1092 | CSS | 8년 전 | 1793 | ||
| 1091 | CSS | 8년 전 | 1957 | ||
| 1090 | CSS | 8년 전 | 1920 | ||
| 1089 | HTML | 8년 전 | 4417 | ||
| 1088 | CSS | 8년 전 | 1478 | ||
| 1087 | CSS | 8년 전 | 1605 | ||
| 1086 | CSS | 8년 전 | 1512 | ||
| 1085 | CSS | 8년 전 | 1533 | ||
| 1084 | CSS | 8년 전 | 1251 | ||
| 1083 | CSS | 8년 전 | 1062 | ||
| 1082 | CSS | 8년 전 | 2159 | ||
| 1081 | CSS | 8년 전 | 1961 | ||
| 1080 | CSS | 8년 전 | 1921 | ||
| 1079 | CSS | 8년 전 | 1971 | ||
| 1078 | CSS | 8년 전 | 1665 | ||
| 1077 | CSS | 8년 전 | 1687 | ||
| 1076 | CSS | 8년 전 | 2029 | ||
| 1075 | CSS | 8년 전 | 1883 | ||
| 1074 | CSS | 8년 전 | 1697 | ||
| 1073 | CSS | 8년 전 | 1543 | ||
| 1072 | CSS | 8년 전 | 1627 | ||
| 1071 | CSS | 8년 전 | 2026 | ||
| 1070 | CSS | 8년 전 | 1609 | ||
| 1069 | CSS | 8년 전 | 1845 | ||
| 1068 | CSS | 8년 전 | 1640 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기