세로 단추 그룹

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>
게시글 목록
| 번호 | 제목 |
|---|---|
| 3293 |
기타
W3.CSS 테두리
|
| 3292 | |
| 3291 | |
| 3290 |
기타
W3.CSS 둥근 패널
|
| 3289 | |
| 3288 | |
| 3286 | |
| 3285 | |
| 3284 |
CSS
W3.CSS 패널
|
| 3282 |
기타
W3.CSS 테이블
|
| 3281 |
기타
W3.CSS 경고
|
| 3280 |
기타
W3.CSS 컨테이너
|
| 3279 | |
| 3278 |
기타
SVG <rect>
|
| 3277 |
기타
HTML의 SVG
|
| 3276 | |
| 3275 | |
| 3274 | |
| 3273 |
CSS
반응형 미디어쿼리
|
| 3272 | |
| 3271 |
웹접근성
로그인 자동완성 제외~
|
| 3270 | |
| 3269 | |
| 3268 | |
| 3267 | |
| 3266 | |
| 3265 |
CSS
CSS3 미디어 쿼리
|
| 3263 |
HTML
유튜브 댓글 입력 스타일
|
| 3262 | |
| 3261 |
CSS
플렉스 항목 속성
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기