배경을 위아래를 다르게 깔고 싶습니다.
위, 혹은 아래에 배경을 한가지만 할경우에는 문제가 없는데요.
두가지 다 배경으로 지정해서 사용하고 싶거든요.
안그러면 좀 양옆으로 빈공간이 많이 남아서 ㅠㅠ
background-image:url(위의이미지);
background-repeat:repeat-x;
background-position:top;
위에 깔대는 요렇게 썼고요..
background-image:url(아래이미지);
background-repeat:repeat-x;
background-position:bottom;
아래 깔때는 요렇게 썻씁니다.
헌데 궁금한것은 위와 아래 다르게 한페이지 내에서 보여주고 싶어요.
(걍 다썻어요.)
페이지내에서
위이미지
----------------
내용
--------------
아래이미지
원래 안되는 걸까요?
아니면 다른방법이라도..있으면 부탁드립니다. 흑;ㅅ;
위, 혹은 아래에 배경을 한가지만 할경우에는 문제가 없는데요.
두가지 다 배경으로 지정해서 사용하고 싶거든요.
안그러면 좀 양옆으로 빈공간이 많이 남아서 ㅠㅠ
background-image:url(위의이미지);
background-repeat:repeat-x;
background-position:top;
위에 깔대는 요렇게 썼고요..
background-image:url(아래이미지);
background-repeat:repeat-x;
background-position:bottom;
아래 깔때는 요렇게 썻씁니다.
헌데 궁금한것은 위와 아래 다르게 한페이지 내에서 보여주고 싶어요.
(걍 다썻어요.)
페이지내에서
위이미지
----------------
내용
--------------
아래이미지
원래 안되는 걸까요?
아니면 다른방법이라도..있으면 부탁드립니다. 흑;ㅅ;
댓글 4개
<style>
#header {
width 100%;
background-image:url(위의이미지);
background-repeat:repeat-x;
background-position:top;
}
#footer {
width 100%;
background-image:url(아래이미지);
background-repeat:repeat-x;
background-position:bottom;
}
</style>
<div id="wrap">
<div id="header">
</div>
<div id="container">
<div id="contents">
</div>
</div>
<div id="footer">
</div>
</div>
#header {
width 100%;
background-image:url(위의이미지);
background-repeat:repeat-x;
background-position:top;
}
#footer {
width 100%;
background-image:url(아래이미지);
background-repeat:repeat-x;
background-position:bottom;
}
</style>
<div id="wrap">
<div id="header">
</div>
<div id="container">
<div id="contents">
</div>
</div>
<div id="footer">
</div>
</div>
게시글 목록
| 번호 | 제목 |
|---|---|
| 284438 | |
| 284437 | |
| 284435 | |
| 284430 | |
| 284420 | |
| 284417 | |
| 284409 | |
| 284401 | |
| 284399 | |
| 284397 | |
| 284380 | |
| 284378 | |
| 284371 | |
| 284370 | |
| 284366 | |
| 284364 | |
| 284360 | |
| 284357 | |
| 284355 | |
| 284354 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기