Posted on 2008/10/08 21:21
Filed Under Web(웹) Study/HTML & CSS

<head> 와 </head> 사이에 넣어 주세요.
<style type=text/css>
BODY {background-image:url(그림경로);
background-repeat:no-repeat;
background-position:right;
background-attachment:fixed;
}
</style>

저 위의 right 를 원하는 위치로 바꾸시면 됩니다


background-position:right; --> 이렇게하면 이미지가 우측으로 정렬은 되지만, 세로정렬은
기본정렬(중앙)로 항상 정렬됩니다.

background-position:right bottom;
--> 이렇게 해주시면 "우측, 하단"으로 고정하실수 있습니다.

바꿀수 있는 정렬위치
가로(left, center, right)
세로(top, middle, bottom)
크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2008/10/08 21:21 2008/10/08 21:21

댓글을 달아 주세요

[로그인][오픈아이디란?]

About

by 하늘이야기

Archive

Counter

· Total
: 1063502
· Today
: 509
· Yesterday
: 672
-->