스타일 시트에서 배경 이미지 두개 삽입 정보
스타일 시트에서 배경 이미지 두개 삽입
본문
너무 초보라 이렇게 하면 될것 같은데 안되네요,,
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;
}
상하단 배경을 따로 다른 이미지를 두고 싶은데,,
잘안되네요,,,
도와주세요^^
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;
}
상하단 배경을 따로 다른 이미지를 두고 싶은데,,
잘안되네요,,,
도와주세요^^
댓글 전체
상하단 따로 하실려면 div 혹은 테이블로 상단 하단 부분 만드신후 그곳에 위 배경태그를 넣어주셔야합니다

<?
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 © 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%가나오지 안던데,,, 제가 먼가 착각하고 잇는것 맞죠?
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 © 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인가요? 이부분도 수정 해줘야 할것 같네요.
실제 높이값을 주시던지..
<?
$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인가요? 이부분도 수정 해줘야 할것 같네요.
실제 높이값을 주시던지..