Files
2nd/10_Wiki/Topic_CSS/CSS_Styling_Lists.md
T
koriweb 9609c04755 docs(10_Wiki): W3Schools 위키화 — HTML/CSS/JavaScript(core)
W3Schools 튜토리얼을 P-Reinforce v3.1 포맷으로 위키화(영어 본문, 한/영 섹션 헤더).
- Topic_HTML: 59문서 (튜토리얼+예제, 레퍼런스/메타 제외)
- Topic_CSS: 190문서 (메인 + Advanced/Flexbox/Grid/RWD 전체)
- Topic_JavaScript: 120문서 (코어 언어; Temporal/DOM상세/BOM/WebAPI/AJAX/jQuery/Graphics 등은 후속)
각 폴더 00_INDEX.md(MOC) 포함. 코드 verbatim, 미확인분은 "Not found in source" 표기.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-23 19:21:18 +09:00

6.0 KiB

id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
id title category status verification_status canonical_id aliases duplicate_of source_trust_level confidence_score created_at updated_at review_reason merge_history tags raw_sources applied_in github_commit
css-styling-lists CSS Styling Lists Frontend draft conceptual
styling lists
list-style
list markers
ul ol styling
CSS lists
list-style-type
bullet styling
B 0.88 2026-06-23 2026-06-23
css
web
frontend
w3schools
lists
list-style
https://www.w3schools.com/css/css_list.asp

CSS Styling Lists

🎯 한 줄 통찰 (One-line insight)

CSS list properties let you set the marker type, replace the marker with a custom image, control whether the marker sits inside or outside the list item, and bundle all of these into a single list-style shorthand. [S1]

🧠 핵심 개념 (Core concepts)

  • Two HTML list types — unordered lists (<ul>), where items are marked with bullets, and ordered lists (<ol>), where items are marked with numbers or letters. [S1]
  • The list CSS propertieslist-style-type, list-style-position, list-style-image, and the list-style shorthand. [S1]
  • Marker control — these properties set the marker style, set an image as the marker, and add background colors / fine-tune layout. [S1]

🧩 추출된 패턴 (Extracted patterns)

  • Type selection — use list-style-type to choose the marker (e.g. circle, disc, square, upper-roman). [S1]
  • Image marker with fallback — pair list-style-image: url(...) with a list-style-type fallback. [S1]
  • Shorthand order — the list-style shorthand accepts values in the order: type, position, image. [S1]
  • Remove markers cleanly — set list-style-type: none and also reset margin: 0 and padding: 0. [S1]

📖 세부 내용 (Details)

In HTML, there are two main types of lists: unordered lists (<ul>) — the list items are marked with bullets; and ordered lists (<ol>) — the list items are marked with numbers or letters. The CSS list properties allow you to set different list item markers, set an image as the list item marker, add background colors to lists and list items, and more. [S1]

Different List Item Markers — the list-style-type property specifies the type of list item marker: [S1]

ul.a {
  list-style-type: circle;
}

ul.b {
  list-style-type: square;
}

ol.c {
  list-style-type: upper-roman;
}

ol.d {
  list-style-type: lower-alpha;
}

An Image as the List Item Marker — the list-style-image property specifies an image as the list item marker: [S1]

ul {
  list-style-image: url('sqpurple.gif');
}

Position the List Item Markers — the list-style-position property specifies the position of the list-item markers (bullet points). list-style-position: outside; means the bullet points will be outside the list item (this is default). list-style-position: inside; means the bullet points will be inside the list item: [S1]

ul.a {
  list-style-position: outside;
}

ul.b {
  list-style-position: inside;
}

Remove Default Settings — the list-style-type: none property can also be used to remove the markers/bullets. Note that the list also has default margin and padding. To remove this, add margin: 0 and padding: 0 to <ul> or <ol>: [S1]

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

List - Shorthand property — the list-style property is a shorthand property. It is used to set all the list properties in one declaration. The properties are set in this order: list-style-type, list-style-position, list-style-image. It does not matter if one of the values above is missing (as long as the rest are in the specified order): [S1]

ul {
  list-style: square inside url("sqpurple.gif");
}

Styling List With Colors — we can also style lists with colors, to make them look more interesting. Anything added to the <ol> or <ul> tag affects the entire list, while properties added to the <li> tag will affect the individual list items — "Not found in source" for the exact code of the colored-list example. [S1]

CSS List Properties [S1]

Property Description
list-style Sets all the properties for a list in one declaration
list-style-image Specifies an image as the list-item marker
list-style-position Specifies the position of the list-item markers (bullet points)
list-style-type Specifies the type of list-item marker

🛠️ 적용 사례 (Applied in summary)

The page's own examples apply marker types to ul/ol classes, an image marker, inside/outside positioning, marker removal with reset margin/padding, and the list-style shorthand. No external project/commit applications found in the source.

💻 코드 패턴 (Code patterns)

List-style shorthand (language: CSS):

ul {
  list-style: square inside url("sqpurple.gif");
}

Remove all markers and spacing:

ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

⚖️ 모순 및 업데이트 (Contradictions & updates)

No contradictions found in the source.

검증 상태 및 신뢰도

  • 상태: draft
  • 검증 단계: conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
  • 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
  • 신뢰 점수: 0.88
  • 중복 검사 결과: 신규 생성 (New discovery)

🔗 지식 그래프 (Knowledge Graph)

📚 출처 (Sources)

📝 변경 이력 (Change history)

  • 2026-06-23: Initial draft synthesized from the W3Schools "CSS Styling Lists" page (Astra wiki-curation, P-Reinforce v3.1 format).