홈 위쪽으로 공백이 생기는 현상
헤드파일을 걸면 위쪽에 딱 붙지 않고 한줄 정도의 공백이 생깁니다.
align=left 로 왼쪽 정렬을 하면 상단이랑 왼쪽에 딱 달라붙는데요
align=center로 중앙 정렬만 하면 위에 공백이 생깁니다.
<body topmargin="0"> 주면 나모에서 미리보기할때는 위로 붙는데
헤드로 걸면 웹상에서는 똑같이 공백이 나오네요
이거 해결하려면 어찌해야할까요ㅠㅠ
스트레스네요 진짜ㅠㅠㅠㅠ
align=left 로 왼쪽 정렬을 하면 상단이랑 왼쪽에 딱 달라붙는데요
align=center로 중앙 정렬만 하면 위에 공백이 생깁니다.
<body topmargin="0"> 주면 나모에서 미리보기할때는 위로 붙는데
헤드로 걸면 웹상에서는 똑같이 공백이 나오네요
이거 해결하려면 어찌해야할까요ㅠㅠ
스트레스네요 진짜ㅠㅠㅠㅠ
|
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기
댓글 9개
요게 테스트 게시판 링크구요
<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">
이게 걸어놓은 헤드파일 입니다ㅠㅠ
31줄 <body ~~~~~~~~~~~>까지 지우세요 그럼 정상으로 뜰겁니다
<====요부분인 공백이 생기고 있습니다 이걸 삭제하셔야해요
이부분에 소스나 오류난 뭔가가 있는거 같은데요
<table align="center" cellpadding="0"~~~~~>
구글 크롬에서 요소검사 해보시면 이부분에 공백이 생긴게 보이실겁니다
<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>를 넣어주시면 될것 같네요.