좌측메뉴와 인덱스 구성이 어렵네요 도와주세요
좌측메뉴와 인덱스에 이미지 삽입중인데
제 실력으론 좀 어렵네요 ~~
보시고 뭐가문제인지 살펴주세요 부탁합니다
처음접해보는 그누보드라 깜깜하네요
포인트가 몇점안되서 500점만 드립니다 죄송 ㅎㅎㅎ
//head.php
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
include_once("$g4[path]/lib/poll.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/connect.lib.php");
include_once("$g4[path]/lib/popular.lib.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 1024;
?>
?>
<!-- 상단 배경 시작 -->
<center>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<center>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="<?=$table_width?>" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169" height="150" rowspan="2"><img src="<?=$g4['path']?>/edo/main_01.jpg"></td>
<td width="855" height="66"><img src="<?=$g4['path']?>/edo/main_02.jpg"></td>
<td>
<img src="<?=$g4['path']?>/edo/spacer.gif" width="1" height="66"></td></tr>
<tr>
<td width="855" height="84"><img src="<?=$g4['path']?>/edo/main_03.jpg"></td>
<td>
<img src="<?=$g4['path']?>/edo/spacer.gif" width="1" height="84"></td>
</tr></table>
<table width='<?=$table_width?>' cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- 왼쪽 메뉴-->
<td width=169 valign=top>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<td width="169" height="142" valign="top">
<?=outlogin("red"); // 외부 로그인 ?>
</td>
</tr>
<tr>
<!-- 왼쪽 메뉴-->
<td width=169 valign=top>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<td width="169" height="142" valign="top">
<?=outlogin("red"); // 외부 로그인 ?>
</td>
</tr>
<tr>
<td width="169" align="center" valign="top"><? include_once("$g4[path]/php/left_b.php"); ?>
</td>
</tr>
</table></td>
<td width="855" valign="top">
</td>
</tr>
</table></td>
<td width="855" valign="top">
//index.php
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<table width="100%" cellpadding="0" cellspacing="0"><tr><td valign=top>
<tr>
<td width="307" height="505" valign="top"><? include_once("$g4[path]/php/main_image.php"); ?></td>
</tr>
<tr>
<td width="307" height="505" valign="top"><? include_once("$g4[path]/php/main_image.php"); ?></td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
include_once("./_tail.php");
?>
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 9개
<table width="100%" cellpadding="0" cellspacing="0"><tr><td valign=top>
<tr>
<td width="307" height="505" valign="top"><? include_once("$g4[path]/php/main_image.php"); ?></td>
</tr>
</table>
이 부분에서 </tr>을 안 닫으신것 같습니다..
그럼, 수고하세요~
답변 감사합니다^^*
<table width="100%" cellpadding="0" cellspacing="0"><tr><td valign=top>
<tr>
<td width="307" height="505" valign="top"><? include_once("$g4[path]/php/main_image.php"); ?></td>
</tr>
</table>
<!-- 메인화면 최신글 끝 -->이 부분으로 추정되네욧
메인화면과 좌측 메뉴는 같은 <table> 에서 같은 <tr> 한 라인으로 되어있고 첫번째 <td></td> <--요기는 좌측메뉴 약 170px로 그 속에 <div> 또는 테이블을 삽입하고, 두번째 <td></td>사이에는 메인화면인데..<table>를 삽입해서 나타내고 있는 것 같습니다. 현재나타난 테이블을 보면 하나의 라인<tr>을 두개의 <td>로 양쪽으로 구분 하실려고 한 것 같은데....그리고 현재의 소스를 보면 두줄<tr>두개 로 되어있네요!! 넓이 지정등이 되어 있질 않습니다. <tr>하나를 지우시던지 하시고, 넓이를 % 또는 px로 지정해서 조정해보세요.. <tr>과 <td>는 닫는 태그가지고는 오류가 나질 않을 겁니다. ^^ 아마도 모양상으로 문제가 되어서 질문하신 것 같아서....윗줄과 아랫줄의 <td> 갯수가 같지 않을때는 colspan를이용하세요..
</td>
</tr>
</table>
왼쪽과 본문 부분 테이즐 두개 감싸는 테이블을 안닫았네요
위 부분을 추가해보세요
아직해결은 못했지만
정성으로 답변주셔서 감사드립니다.