여백 생기는 코딩 질문

· 15년 전 · 2031 · 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">&nbsp;</td>
    <script language="javascript" src="<?=$g_skin_link?>/image/gbbig5.js"></script>
    &nbsp; </tr>
  <tr>
    <td height="15" align="center" valign="bottom">&nbsp;</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">&nbsp;</td>
<script language="javascript" src="<?=$g_skin_link?>/image/gbbig5.js"></script>
&nbsp; </tr>
<tr>
<td height="15" align="center" valign="bottom">&nbsp;</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">&nbsp;</td>
</tr>
</table>
<script language="javascript" src="<?=$g_skin_link?>/image/gbbig5.js"></script>
</div>

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

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

자유게시판

+
제목 글쓴이 날짜 조회
15년 전 조회 1,517
15년 전 조회 1,699
15년 전 조회 1,872
15년 전 조회 1,806
15년 전 조회 1,656
15년 전 조회 1,893
15년 전 조회 1,381
15년 전 조회 1,799
15년 전 조회 1,403
15년 전 조회 1,817
15년 전 조회 4,124
15년 전 조회 1,717
15년 전 조회 2,585
15년 전 조회 2,008
15년 전 조회 2,032
15년 전 조회 1,752
15년 전 조회 1,796
15년 전 조회 1,902
15년 전 조회 1,629
15년 전 조회 1,806
15년 전 조회 1,685
15년 전 조회 1,808
15년 전 조회 1,703
15년 전 조회 1,650
15년 전 조회 1,809
15년 전 조회 1,651
15년 전 조회 1,634
15년 전 조회 1,695
15년 전 조회 2,890
15년 전 조회 1,740
🐛 버그신고