테스트 사이트 - 개발 중인 베타 버전입니다

게시글 가로로 2개씩 나오게 하려면... 채택완료

우우사랑 8년 전 조회 3,448

안녕하세요,~~

아래의 소스를 보시면 한줄로 세로로 나열하게 되어있는데 아래 소스를 수정하여 가로 2개씩 나오게 하려는데 보시고 도움 부탁드립니다. 감사합니다.

 

for ($i=$i+1; $row=sql_fetch_array($result); $i++) {

  ?> 

   
      
" width="60" height="79">

  

   
 
 
   

 

 

 

댓글을 작성하려면 로그인이 필요합니다.

답변 2개

채택된 답변
+20 포인트
8년 전
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

플라이
8년 전

</p><p><table width="100%"></p><p><tr></p><p><td></p><p><table style="width:313px; background:url(/mobile/shop/img/lawyer_bg.png) no-repeat;">
<tr>
<td>
<table style="width:313px; ">
<tr>
<td><img src="/data/file/lawyer/<?php echo $row["bf_file"] ?>" width="60" height="79"></td>
 <td> <?php echo $row["wr_subject"] ?></td>
 </tr>
   </table>
<div style="margin-left:70px; top:-20%;">
<table style="width:240px;" ></p><p>   <tr><td style="width:240px;"  ><?php echo substr($row["wr_content"],0,80)?></td>
  </tr>
  </table>
  </div>
  </td>
  </tr>
  </table></p><p></td></p><p><td></p><p><table style="width:313px; background:url(/mobile/shop/img/lawyer_bg.png) no-repeat;">
<tr>
<td>
<table style="width:313px; ">
<tr>
<td><img src="/data/file/lawyer/<?php echo $row["bf_file"] ?>" width="60" height="79"></td>
 <td> <?php echo $row["wr_subject"] ?></td>
 </tr>
   </table>
<div style="margin-left:70px; top:-20%;">
<table style="width:240px;" ></p><p>   <tr><td style="width:240px;"  ><?php echo substr($row["wr_content"],0,80)?></td>
  </tr>
  </table>
  </div>
  </td>
  </tr>
  </table></p><p></td></p><p></tr></p><p></table></p><p>

 

이런식으로 테이블 겹겹이 처리 되어지는 부분은 있지만 지금 형태로 본다면 다 감싸는 테이블에 tr td를 추가 생성하여 처리하면 될듯 합니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인