홈 위쪽으로 공백이 생기는 현상 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

홈 위쪽으로 공백이 생기는 현상 정보

홈 위쪽으로 공백이 생기는 현상

본문

헤드파일을 걸면 위쪽에 딱 붙지 않고 한줄 정도의 공백이 생깁니다.
align=left 로 왼쪽 정렬을 하면 상단이랑 왼쪽에 딱 달라붙는데요
align=center로 중앙 정렬만 하면 위에 공백이 생깁니다.

<body topmargin="0"> 주면 나모에서 미리보기할때는 위로 붙는데
헤드로 걸면 웹상에서는 똑같이 공백이 나오네요

이거 해결하려면 어찌해야할까요ㅠㅠ
스트레스네요 진짜ㅠㅠㅠㅠ
  • 복사

댓글 전체

http://yrtest.dothome.co.kr/gnuboard4/bbs/board.php?bo_table=test

요게 테스트 게시판 링크구요

<html><head>
<title>제목 없음</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table align="center" cellpadding="0" cellspacing="0" width="1260">
    <tr>
        <td width="1260" colspan="2"><img src="http://yrtest.dothome.co.kr/testhead.jpg" width="1260" height="50" border="0"></td>
    </tr>
    <tr>
        <td width="153" valign="top"><img src="http://yrtest.dothome.co.kr/testhead2.jpg" width="221" height="209" border="0"></td>
        <td width="1107">

이게 걸어놓은 헤드파일 입니다ㅠㅠ
<a name="g4_head></a>
  <====요부분인 공백이 생기고 있습니다 이걸 삭제하셔야해요
  이부분에 소스나 오류난 뭔가가 있는거 같은데요
<table align="center" cellpadding="0"~~~~~>

구글 크롬에서 요소검사 해보시면 이부분에 공백이 생긴게 보이실겁니다
body가 2번 불러와지네요. 하나로 바꾸시고,
<table cellpadding="0" cellspacing="0" width="1260" align="center">
    <tr>
        <td width="1260">
            <p align="center"><img src="http://yrtest.dothome.co.kr/testhead.jpg" width="1260" height="50" border="0">

이 부분이 레이아웃 테이블 같은데 끝에 닫혀있질 않네요.
푸터 파일에 </p></td></tr></table>를 넣어주시면 될것 같네요.
© SIRSOFT
현재 페이지 제일 처음으로