스타일 시트에서 배경 이미지 두개 삽입 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

스타일 시트에서 배경 이미지 두개 삽입 정보

스타일 시트에서 배경 이미지 두개 삽입

본문

너무 초보라 이렇게 하면 될것 같은데 안되네요,,



body {
background-image: url(<?=$g4[path]?>/img/top_bg2.jpg);
background-repeat:repeat-x; background-position: center top;
background-image: url(<?=$g4[path]?>/img/bottom.jpg);
background-repeat:repeat-x; background-position: center bottom;
}


이렇게 해도 안되고,,

body {
background-image: url(<?=$g4[path]?>/img/top_bg2.jpg);
background-repeat:repeat-x; background-position: center top;}
oncebg {
background-image: url(<?=$g4[path]?>/img/bottom.jpg);
background-repeat:repeat-x; background-position: center bottom;
}

상하단 배경을 따로 다른 이미지를 두고 싶은데,,

잘안되네요,,,

도와주세요^^

댓글 전체

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$admin = get_admin("super");

// 사용자 화면 우측과 하단을 담당하는 페이지입니다.
// 우측, 하단 화면을 꾸미려면 이 파일을 수정합니다.
?>

</td></tr></table>
<!-- 중간끝 -->


<!-- 하단 -->
 <div style='background-image:url("<?=$g4[path]?>/img/bottom.jpg"); width:100%; height:10; ' background-repeat:repeat-x; background-position: center bottom; >

<table align=center width='<?=$table_width?>' cellpadding=0 cellspacing=0>
<tr>
    <td width=180 bgcolor=#EBEBEB><a href='<?=$g4[path]?>/'><img src='<?=$g4[path]?>/data/common/logo_img' border=0 style="filter:gray();"></a></td>
    <td><img src='<?=$g4[shop_img_path]?>/tail_img01.gif'></td>
    <td width=10></td>
    <td><img src='<?=$g4[shop_img_path]?>/tail_img02.gif'></td>
    <td width=770 bgcolor=#EBEBEB style='padding-left:10px;'>
        <table width=98% cellpadding=0 cellspacing=0 border=0>
        <tr><td height=30>
            <a href="<?=$g4[shop_path]?>/content.php?co_id=company">회사소개</a> |
            <a href="<?=$g4[shop_path]?>/content.php?co_id=provision">서비스이용약관</a> |
            <a href="<?=$g4[shop_path]?>/content.php?co_id=privacy">개인정보 취급방침</a>
            </td></tr>
        <tr><td height=1 bgcolor=#CBCBCB></td></tr>
        <tr><td height=60 style='line-height:150%'>
            <FONT COLOR="#46808F">
                <?=$default[de_admin_company_addr]?> /
                전화 : <?=$default[de_admin_company_tel]?> /
                팩스 : <?=$default[de_admin_company_fax]?> /
                운영자 : <?=$admin[mb_name]?> <BR>
                사업자 등록번호 : <?=$default[de_admin_company_saupja_no]?> /
                대표 : <?=$default[de_admin_company_owner]?> /
                개인정보관리책임자 : <?=$default[de_admin_info_name]?> <br>
                통신판매업신고번호 : <?=$default[de_admin_tongsin_no]?>
                <? if ($default[de_admin_buga_no]) echo " / 부가통신사업신고번호 : $default[de_admin_buga_no]"; ?>
                <br>Copyright &copy; 2001-2005 <?=$default[de_admin_company_name]?>. All Rights Reserved. </FONT></td></tr></table>
    </td>
</tr>
</table>
</div>

<!-- 하단끝 -->


<?
$sec = get_microtime() - $begin_time;
$file = $_SERVER[PHP_SELF];
?>

</td>
<td valign=top><?include("$g4[shop_path]/boxtodayview.inc.php");?></td>
</tr>
</table><br/>
<!-- 전체끝 -->

<?
include_once("$g4[path]/tail.sub.php");
?>


이런식으로 넣는것 아닌가요?

이렇게 해도 width:100%가나오지 안던데,,, 제가 먼가 착각하고 잇는것 맞죠?
<!-- 하단끝 -->


<?
$sec = get_microtime() - $begin_time;
$file = $_SERVER[PHP_SELF];
?>

</td>
<td valign=top><?include("$g4[shop_path]/boxtodayview.inc.php");?></td>
</tr>
</table>---요 테이블의 넓이<br/>
<!-- 전체끝 -->

마지막 테이블 가로 폭은 얼마가 되나요?
하단 div 넓이값을 100%로 주셔도  마지막 테이블 가로폭 만큼 100% 넓이로 나오니깐 확인해 보시면 되겠네요.
그리고 div안의 height:10은 10px인가요? 이부분도 수정 해줘야 할것 같네요.
실제 높이값을 주시던지..
전체 60 |RSS
그누4 질문답변 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT