문의 드립니다. 정보
문의 드립니다.
본문
궁금한점이 있어서 이렇게 문의 드립니다. 루트에 있는 css파일에 아래와 같이 배경을 적용하고 싶어서 그런데 이미지 넣은 부분이 잘 안돼서 문의 드립니다.background: 뒤에 어떤식으로 이미지 경로를 넣어야 하는지요?
body {
background:
font-family:'PT Sans Narrow', Arial, Helvetica, sans-serif;
font-size:12px;
color:#333;
line-height:18px;
}
body {
background:
font-family:'PT Sans Narrow', Arial, Helvetica, sans-serif;
font-size:12px;
color:#333;
line-height:18px;
}
댓글 전체

body{
background: url(image.gif);
}
background: url(image.gif);
}

background:url('이미지 경로') no-repeat; -->반복없이 하나의 이미지만으로 배경에 넣을 때
background:url('이미지 경로') repeat-x; -->가로로 반복된 이미지를 반복시킬 때
background:url('이미지 경로') repeat-y; -->세로로 반복된 이미지를 반복시킬 때
background:url('이미지 경로') repeat; -->가로,세로 전체적으로 배경이미지를 반복시킬 때
참고사이트
http://www.w3schools.com/cssref/pr_background-repeat.asp
background:url('이미지 경로') repeat-x; -->가로로 반복된 이미지를 반복시킬 때
background:url('이미지 경로') repeat-y; -->세로로 반복된 이미지를 반복시킬 때
background:url('이미지 경로') repeat; -->가로,세로 전체적으로 배경이미지를 반복시킬 때
참고사이트
http://www.w3schools.com/cssref/pr_background-repeat.asp

감사합니다. 다들 좋은 답변 이시지만 첫번째 올린분을 채택해 드렸습니다. 감사합니다.