여백 생기는 코딩 질문

· 15년 전 · 2051 · 5

마진을 전부 0으로 주고 소스를 봐도 br 이나 P 가 없는데도..
class="mainbox" 이 부분도 이상 없구요..
자꾸 위에 여백이 생기네요  소스 좀 봐주세요

body {
 margin-top: 0px;
 background-image: url();
 margin-left: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
}
-->
</style></head>

<body>
<center>
<div class="mainbox"><table width="1001" height="180" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="180" align="center" valign="bottom" background="<?=$g_skin_link?>/img/top_bg.gif"> </td>
    <script language="javascript" src="<?=$g_skin_link?>/image/gbbig5.js"></script>
      </tr>
  <tr>
    <td height="15" align="center" valign="bottom"> </td>
  </tr>
</table>

|

댓글 5개

이미지 삽입된 부분이 그러지 않던가요? 파폭에서 이상 없으시면 다시한번 답변 달아주세요!
<div class="mainbox"><table width="1001" height="180" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="180" align="center" valign="bottom" background="<?=$g_skin_link?>/img/top_bg.gif"> </td>
<script language="javascript" src="<?=$g_skin_link?>/image/gbbig5.js"></script>
  </tr>
<tr>
<td height="15" align="center" valign="bottom"> </td>
</tr>
</table>

======================================================================================

<div class="mainbox">
<table width="1001" height="180" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="180" align="center" valign="bottom" background="<?=$g_skin_link?>/img/top_bg.gif"></td>
</tr>
<tr>
<td height="15" align="center" valign="bottom"> </td>
</tr>
</table>
<script language="javascript" src="<?=$g_skin_link?>/image/gbbig5.js"></script>
</div>

일단..마진과 상관없을지 모르지만..
1. </td> 테그 뒤에 오는 <script>를 하단으로 이동
2. </td> ... </tr> 사이에 있는 쓸데없는   제거
이유는 단 한가지 갈곳없는   때문입니다
</td> 태그 밖에 이런게 있으면 위로 올라가버립니다

그런데 javascript가 왜 저런 곳에 위치하는거죠?
document.write("<td>.............") 이런게 들어있나요?
그러고보니 테이블 코딩이었네요.
css와 div코딩중 저도 이미지코딩시 3px공백 때문에 하도 고생을 해서요.
위에 분들 정말 감사합니다......................................^_^
댓글을 작성하시려면 로그인이 필요합니다.

자유게시판

+
제목 글쓴이 날짜 조회
15년 전 조회 1,532
15년 전 조회 1,719
15년 전 조회 1,897
15년 전 조회 1,833
15년 전 조회 1,680
15년 전 조회 1,910
15년 전 조회 1,401
15년 전 조회 1,821
15년 전 조회 1,422
15년 전 조회 1,840
15년 전 조회 4,142
15년 전 조회 1,733
15년 전 조회 2,612
15년 전 조회 2,027
15년 전 조회 2,052
15년 전 조회 1,769
15년 전 조회 1,816
15년 전 조회 1,921
15년 전 조회 1,643
15년 전 조회 1,822
15년 전 조회 1,702
15년 전 조회 1,828
15년 전 조회 1,729
15년 전 조회 1,671
15년 전 조회 1,830
15년 전 조회 1,673
15년 전 조회 1,658
15년 전 조회 1,715
15년 전 조회 2,908
15년 전 조회 1,762