높이에 상관없이 bg주는법 알려주세요 ㅠ.ㅜ
얀별
안녕하세요 ㅠ.ㅜ 머가 잘안되네요 오늘까지 마무리 해야하는거라..
질문좀 드릴께요.
지금 bg 를 높이 1픽셀짜리를 짤라서 repeat-y 를 시켜서
전체 컨텐츠 높이에 상관없이 bg가 깔리도록 해야하는데 저게 딱 윈도우 스크롤 안생기는 크기까지만 깔리고
안되네요..
스크롤이 생겨도 주욱 bg가 깔려야 하는데..
보시다시피 오른쪽 밑에 bg가 적용 안되서 하얀색이 튀어 나와있네요 ㅠ.ㅜ
지금 코드가요..
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
html xmlns=http://www.w3.org/1999/xhtml lang=ko xml:lang=ko
head
meta http-equiv=content-type content=text/html;charset=utf-8 /
title INPLUS /title
link rel=stylesheet type=text/css href=../../share/css/ex.css media=all /
script language=JavaScript src=/share/js/common.js type=text/javascript/script
/head
body
div id=bg_main_right/div
div id=header
div id=headhead/div
/div
div id=wrap
div id=contentcontentbr /contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /
contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /contentbr /
/div
/div
div id=footer
div id=copycopy/div
/div
/body
/html-------------------
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, img, ins, kbd, q, s, samp, small, strike, strong, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td { margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent; }
html { height: 100% ; }
body { line-height: 1; height: 100%; font : 30px/1.6em 돋움; color: #eee; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after { content: '; content: none; }
table { boreder-collapse: collapse; border-spacing: 0; }
#header { background: url(../../img/00_main/redbgline.png) repeat-x top left; height: 100px; }
#head { width: 1004px; margin: 0 auto; height: 100px; background: red; }
#content { width: 1004px; margin: 0 auto; height: 100%; background: blue; }
#copy { width: 1004px; margin: 0 auto; height: 100px; background: green; }
#bg_main_right { position:absolute; top:0; right: 0px; width:50%; height:100%; background: yellow url(../../img/00_main/bgright.gif) repeat 501px top; z-index: -4; }