Background
바탕
Background
형식
background:<value=<background-color>
|<background-image>|<background-repeat>
|<background-attachment> |<background-position>>
보기
BODY { background:
red url(http://www.user.com/sam.gif) }
위의 보기는 BODY라는 대상에 대하여 바탕색Background
Color는 'red', 바탕그림background-image은 위 url의 'sam.gif'를 지정하고 있다.
B
{ background: #ffffff }
위의 보기는 B에 대하여 바탕색Background-color을
'#ffffff'로 정한 것이다.
P
{ background: url(../dir/sam.gif) fixed }
위의 보기는 지정한 디렉토리의 'sam.gif'가 바탕그림Background
Image이고 바탕의 성격Background Attachment은 'fixed'로 나타난다.
TABLE
{ background: #000000 url(sam.gif) no-repeat bottom right }
위의 보기는 TABLE에 대하여 바탕색은 '#000000'로,
바탕그림은 'sam.gif'이고, 바탕그림의 연속Background Repeat은 'no-repeat'이며, 바탕그림의 위치Background
Position는 줄Line의 'bottom'이며, 가로위치는 'right'이다. 위의
모든 보기에서 지정되지 않은 사항은 초기값Initial Value이 사용된다.