
background-color : 배경색background-image : 이미지 배경(url(...))background-repeat : repeat | no-repeat | repeat-x | repeat-ybackground-position : left/top/center 또는 x y 좌표background-size : auto | cover | contain | <length> <length>background-attachment : scroll | fixed | localbackground: color image position/size repeat attachment;.hero {
background: #0a0 url('/img/sky.png') center/cover no-repeat fixed;
}
border-width | style | color : 예) 1px solid #333border-top/right/bottom/left : 방향별 개별 제어border-radius : 둥근 모서리(단일/각 코너별/슬래시로 타원)outline : 레이아웃에 영향 없는 외곽선(포커스 표시에 유용).card {
border: 1px solid #ddd;
border-radius: 12px;
}
margin–border–padding–contentclear로 해제.thumb { float: left; margin-right: 12px; }
.meta { overflow: hidden; } /* clearfix 대용 */
display: flexflex-direction, 줄바꿈: flex-wrapjustify-content(주축), align-items(교차축)flex(=grow shrink basis), order, align-self.list { display:flex; gap:12px; justify-content:space-between; align-items:center; }
.item { flex: 1 1 240px; }
transition : 속성의 변화 과정을 시간에 따라 부드럽게
transition-property | duration | timing-function | delaytiming-function: linear | ease | ease-in | ease-out | ...transform : 요소를 이동/회전/확대/기울이기
translate(X|Y|x y), scale(X|Y), rotate(deg), skewrotateX/Y/Z, translateZ, 원근감 perspective.box {
transition: transform 300ms ease, background-color .2s;
}
.box:hover {
transform: translateY(-6px) scale(1.02) rotate(2deg);
}
animation-name, animation-duration, animation-iteration-count(숫자|infinite),animation-direction(normal|reverse|alternate|alternate-reverse),animation-timing-function(linear|ease|ease-in|ease-out|ease-in-out)@keyframes 로 중간 상태를 정의하여 이름으로 연결@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}
.badge {
animation: spin 2s linear infinite;
}
실습 예시에서는
alternate/alternate-reverse방향, 다단계 키프레임(0%/30%/50%/100%),transform(rotate/translate/scale) 조합까지 시연합니다.
의미 있는 영역 태그로 문서 구조와 접근성을 향상
header : 머리말(로고/검색/메뉴)nav : 내·외부 링크 묶음(네비게이션)section : 주제별 컨텐츠 블록(화면 전환 단위/그룹)article : 독립적 글/게시물(섹션 내부 포함 가능)aside : 보조 영역(광고/링크 모음)footer : 저작권·연락처 등 하단 정보<header>...</header>
<nav>...</nav>
<section>
<article>글1</article>
<article>글2</article>
</section>
<aside>배너</aside>
<footer>© 2025 BlueShell</footer>
background: ... center/cover no-repeatborder:1px solid #ddd; border-radius:12pxdisplay:flex; justify-content:space-betweentransition: transform .3s ease@keyframes + animation: name 2s linear infiniteheader/nav/section/article/aside/footer