Topic_CSS/Topic_HTML/Topic_JavaScript/Topic_Prompt/Topic_Comfyui 등 기존 카테고리 폴더를 정리하고, Topic_Graphic/Dev 등 신규 산출물과 Topics 내부 세션/메모리 기록을 동기화.
3.5 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 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| howto-css-full-page | How To - Full Page Image | Web_Recipes | draft | conceptual |
|
B | 0.83 | 2026-07-04 | 2026-07-04 |
|
|
HOWTO CSS Full Page
🎯 한 줄 통찰 (One-line insight)
This recipe needs the SAME html, body { height: 100% } foundation already established in [[HOWTO CSS Div Full Height]] — a full-page background image is really just "full-height div" plus three background properties (background-position: center; background-repeat: no-repeat; background-size: cover;) that together crop and scale the image to fill the box without distortion or tiling, and switching to a "half page" image is a ONE-LINE change (height: 50% instead of 100%) since the height percentage is what defines "how much of the page" the image covers, not the background properties themselves. [S1]
🧠 핵심 개념 (Core concepts)
html, body { height: 100%; }prerequisite — same requirement as the full-height div recipe: percentage heights need a defined ancestor chain. [S1]background-size: cover— scales the image to completely cover the element's box, cropping overflow, never leaving gaps or distorting aspect ratio. [S1]background-position: center— centers the visible crop of the image within the box. [S1]background-repeat: no-repeat— prevents the image from tiling. [S1]- Height percentage controls page coverage —
height: 100%= full page,height: 50%= half page; the background properties stay identical either way. [S1]
📖 세부 내용 (Details)
- Full-page:
body, html { height: 100%; } .bg { background-image: url("img_girl.jpg"); height: 100%; background-position: center; background-repeat: no-repeat; background-size: cover; }. [S1] - Half-page: same
.bgrules, justheight: 50%;. [S1]
⚖️ 모순 및 업데이트 (Contradictions & updates)
없음 — 신규 레시피, 기존 문서와 모순되는 내용 없음.
🛠️ 적용 사례 (Applied in summary)
전체 화면과 절반 화면 두 가지 배경 이미지 데모가 원문에서 나란히 제시됨. [S1]
💻 코드 패턴 (Code patterns)
Full-screen background image, cropped and centered without distortion (CSS):
body, html { height: 100%; }
.bg {
background-image: url("img_girl.jpg");
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual
- 출처 신뢰도: B (W3Schools — widely used educational reference)
- 신뢰 점수: 0.83
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: W3Schools HOW TO
- 관련 개념: HOWTO CSS Div Full Height, HOWTO CSS Hero Image, HOWTO CSS Fullscreen Video
- 참조 맥락: CSS Layout & Positioning 섹션.
📚 출처 (Sources)
- [S1] W3Schools — How To - Full Page Image — https://www.w3schools.com/howto/howto_css_full_page.asp
📝 변경 이력 (Change history)
- 2026-07-04: Initial draft synthesized from the W3Schools "How To - Full Page Image" recipe (Astra wiki-curation, P-Reinforce v3.1 format).