2010-01-04 3 views
1

나는 wordpress로 사이트를 디자인하고 있습니다. 내 색인 페이지는 뉴스 항목을 나란히 게시하며, 코드를 수정하려고 할 때마다 두 항목 사이에 휴식을 두지 않습니다.Wordpress 게시 뉴스 항목 나란히, 스택되지 않음

내가 무슨 뜻인지 보려면 www.acacians.net을 방문하십시오.


<table width="760" border="0" align="center" cellpadding="10" cellspacing="0" background="wp-content/themes/DarlingTemplate/images/tablebg.jpg"> 
    <tr> 
    <td> 
    <table width="530" border="0" align="left" cellpadding="10" cellspacing="0" bgcolor="#f4f3f0"> 
     <tr><?php if (have_posts()) : while (have_posts()) : the_post(); ?> 
      <td><table width="530" border="0" cellspacing="0" cellpadding="5"> 
      <tr> 
       <td width="30" height="30"><img src="wp-content/themes/DarlingTemplate/images/category.jpg" /></td> 
       <td background="wp-content/themes/DarlingTemplate/images/subjbg.jpg"><strong><?php the_title(); ?></strong><br /> 
       Posted on <?php the_time('F jS, Y') ?> 
     </td> 
     </tr> 
     </table> 
<table width="530" border="0" cellspacing="0" cellpadding="5"> 
    <tr> 
    <td width="5"></td> 
    <td width="505"><?php the_content(__('(more...)')); ?> 
    </tr> 
</table> 

<?php endwhile; else: ?> 
<p><?php _e('Sorry, no posts matched your criteria.'); ?><p> 
<?php endif; ?>  
    </td> 
    </td> 
</tr> 
</table>    


내가 시도 휴식을 삽입 : 여기

페이지의 "뉴스 후"부분을 제어하는 ​​내 템플릿 코드의 체크입니다 모든 라인의 끝에, 그리고 내 페이지를 새로 고침. 왜이 기능이 작동하지 않습니까?

제공되는 도움에 감사드립니다.

정말 고마워요 !!!!

답변

0

모든 게시물을 동일한 태그에 인쇄했기 때문입니다.

큰 문제는 레이아웃에 중첩 테이블을 사용하고 있다는 것입니다.

+0

테이블을 중첩하는 것이 "잘못"하다는 것을 알고 있습니다. 나는 전혀 다르게 배웠습니다. 두 가지 질문 : 1.) 테이블 중첩과 다른 방식으로이 작업을 수행하면 문제가 해결 될까요? 2.) 테이블 중첩을 수정하기 위해 다른 방법을 배워야합니까? – gritts

+0

CSS 레이아웃을 수행 중입니다 –

+0

팁/좋은 장소가 있습니까? – gritts