웹문서 공부2014. 11. 4. 13:00
   

<STYLE>
body {background-image:url("이미지주소");
background-repeat: no-repeat;
background-position: top;}
table { background-color: transparent; }
td { background-color: transparent; }
</STYLE>


transparent - 투명

no-repeat - 백그라운드 이미지 한번만 보임(바둑판X)

fixed  - 스크롤바를 움직여도 배경은 고정

center - 백그라운드미지 중앙에 정렬

right  - 백그라운드 이미지 오른쪽 정렬

bottom - 백그라운드 이미지 하단에 정렬

right bottom - %로도 가능(50% 50% 이렇게 하면 화면 중앙에 있게됨)

좌우는 left, right, center, n%로 지정

상하는 top, bottom, middle, n%로 지정

Posted by DaumTistory