Contents
see List작성일 2014. 09. 25.
CSS 리스트 스타일 (list-style)
ul, ol 목록의 불릿 및 번호 스타일을 지정하는 속성입니다.
기본 문법
list-style: none; /* 스타일 제거 */
list-style-type 값
| 값 | 설명 | 예시 |
|---|---|---|
| none | 마커 없음 | |
| disc | 채워진 원 (기본값) | ● |
| circle | 빈 원 | ○ |
| square | 채워진 사각형 | ■ |
| decimal | 숫자 | 1, 2, 3 |
| decimal-leading-zero | 앞에 0 붙은 숫자 | 01, 02, 03 |
| lower-roman | 소문자 로마숫자 | i, ii, iii |
| upper-roman | 대문자 로마숫자 | I, II, III |
| lower-alpha | 소문자 알파벳 | a, b, c |
| upper-alpha | 대문자 알파벳 | A, B, C |
| korean-hangul-formal | 한글 숫자 | 일, 이, 삼 |
사용 예시
/* 기본 스타일 제거 */
ul {
list-style: none;
padding: 0;
margin: 0;
}
/* 커스텀 불릿 */
ul.custom {
list-style-type: square;
}
/* 위치 변경 */
ul.inside {
list-style-position: inside; /* 텍스트 안쪽에 마커 */
}
/* 이미지 마커 */
ul.image-bullet {
list-style-image: url("bullet.png");
}
list-style 단축 속성
/* list-style: type position image */
ul {
list-style: square inside none;
}
/* 순서 무관 */
ul {
list-style: inside url("bullet.png");
}
커스텀 마커 (::marker)
/* 마커 색상 변경 */
li::marker {
color: #007bff;
font-size: 1.2em;
}
/* 이모지 마커 */
li::marker {
content: "👉 ";
}
CSS로 완전 커스텀
ul.custom-list {
list-style: none;
padding-left: 20px;
}
ul.custom-list li::before {
content: "✓";
color: green;
margin-right: 10px;
font-weight: bold;
}
네비게이션 메뉴 스타일
nav ul {
list-style: none;
display: flex;
gap: 20px;
padding: 0;
}
nav ul li a {
text-decoration: none;
}html
| No | 작성일 | Title |
|---|---|---|
| 2888 | 2026. 05. 26. | 반응형 이미지 운영 가이드: srcset, sizes, picture, lazy loading으로 LCP와 트래픽 줄이기 |
| 2824 | 2026. 05. 18. | 실무 문의 폼 접근성 점검: fieldset, autocomplete, Constraint Validation API 적용법 |
| 2626 | 2026. 04. 27. | CSS Anchor Positioning 완벽 가이드 — JavaScript 없이 툴팁·팝오버를 정밀하게 배치하는 새로운 CSS 표준 |
| 2547 | 2026. 04. 19. | HTML Invoker Commands API 완벽 가이드: JavaScript 없이 버튼으로 팝업·다이얼로그 제어하기 |
| 2494 | 2026. 04. 14. | 2025/2026 CSS 최신 기능 완벽 정리: View Transitions, Anchor Positioning, 스크롤 애니메이션 |
| 2473 | 2026. 04. 13. | CSS 2026 완벽 가이드: Scroll-Driven Animations, View Transitions, Masonry Layout |
| 2453 | 2026. 04. 12. | CSS @layer, :has(), View Transitions API 실전 가이드: 모던 CSS의 새로운 표준 |
| 2429 | 2026. 04. 11. | CSS Anchor Positioning과 Popover API 실전 가이드 |
| 2393 | 2026. 04. 09. | CSS Anchor Positioning과 Popover API 실전 가이드 - JavaScript 없는 UI 구현 |
| 2372 | 2026. 04. 08. | 2025-2026 CSS 최신 기능 완전 가이드: Container Queries, CSS Nesting, View Transitions, Scroll-driven Animations |