크롬에서 가운데 정렬에 관한 문의입니다 정보
크롬에서 가운데 정렬에 관한 문의입니다본문
오류 주소 : www.hanwoori.com
그동안 익스만 써서 몰랐는데 최근에 크롬을 통해 접속해보았더니
홈페이지가 여러가지 문제가 생기네요.
크롬접속 경우
1.메인페이지에서만 가운데 정렬이 되지 않습니다.
2.최근게시물중에 첨부한 이미지 표시와 같이 위치가 달라집니다
3.플레시 매뉴를 통해 이동하면 좌측에 플래시 그룹이 엉뚱한 곳으로 바뀌어 버립니다.
이런 증상이 왜그런지 통 모르겠습니다.
개인디자이너를 통해 홈페이지 만들고 간간히 여기서 배우며 고치면서 이용하는데
이건 통 모르겠습니다~ 웬만한 관련글은 해봤는데 안먹히네요~
오건 또 다른 문제인데
m.hanwoori.com 모바일빌더에서 글을 쓰면 엔터를 치고 저장을 해도 br이 안먹고
모두 한줄로 되어 버립니다.
림스모바일 빌더인데 이와 관련한 정보도 부탁드립니다.
감사합니다
그동안 익스만 써서 몰랐는데 최근에 크롬을 통해 접속해보았더니
홈페이지가 여러가지 문제가 생기네요.
크롬접속 경우
1.메인페이지에서만 가운데 정렬이 되지 않습니다.
2.최근게시물중에 첨부한 이미지 표시와 같이 위치가 달라집니다
3.플레시 매뉴를 통해 이동하면 좌측에 플래시 그룹이 엉뚱한 곳으로 바뀌어 버립니다.
이런 증상이 왜그런지 통 모르겠습니다.
개인디자이너를 통해 홈페이지 만들고 간간히 여기서 배우며 고치면서 이용하는데
이건 통 모르겠습니다~ 웬만한 관련글은 해봤는데 안먹히네요~
오건 또 다른 문제인데
m.hanwoori.com 모바일빌더에서 글을 쓰면 엔터를 치고 저장을 해도 br이 안먹고
모두 한줄로 되어 버립니다.
림스모바일 빌더인데 이와 관련한 정보도 부탁드립니다.
감사합니다
댓글 전체
각각의 테이블에 style="margin:0 auto;"를 주세요~
<table width="1000" align="center" cellpadding="0" cellspacing="0" border="0" style="margin:0 auto;"> 요렇게
<table width="1000" align="center" cellpadding="0" cellspacing="0" border="0" style="margin:0 auto;"> 요렇게
죄송합니다~ 해봤는데 안먹네요 ㅜㅜ 어디를 바꿔야 하는걸까요?
인덱스 내용입니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<table width="1000" cellpadding=0 cellspacing=0 style="margin:0 auto;"><tr><td valign=top><table width="100%" border="0" cellpadding="0"
cellspacing="0" style="margin:0 auto;">
<tr>
<td rowspan="2" valign="top"><img src="images/index_07.jpg" width="200" height="489" border="0" usemap="#Map" /></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/index_08_01.jpg" width="555" height="20" /></td>
</tr>
<tr>
<td background="images/index_08_02.jpg" width=20> </td>
<td width=515 align="center"><?=latest("dok.mnBn", "today_photo", 5, 10);?></td>
<td background="images/index_08_04.jpg" width=20> </td>
</tr>
<tr>
<td colspan="3"><img src="images/index_08_05.jpg" width="555" height="19" /></td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;">
<tr>
<td colspan="3"><img src="images/index_09_01.jpg" width="245" height="76" /></td>
</tr>
<tr>
<td background="/images/index_09_02.jpg" width=20> </td>
<td background="/images/index_09_03.jpg" width=190><?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("movie_test2", movie, 1, 18);
?></td>
<td background="/images/index_09_04.jpg" width=35> </td>
</tr>
<tr>
<td colspan="3"><img src="images/index_09_05.jpg" width="245" height="30" /></td>
</tr>
<tr>
<td height="5" colspan="3"></td>
</tr>
<tr>
<td colspan="3"><table width="245" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;">
<tr>
<td><a href="/bbs/board.php?bo_table=notice"><img src="images/index_11.jpg" width="245" height="27" border="0" /></a></td>
</tr>
<tr>
<td><table width="244" border="0" style="margin:0 auto;">
<tr>
<td width="0"> </td>
<td width="208">
<?=latest("aei2", "notice", 4, 20)?>
</td>
<td width="0"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;">
<tr>
<td width="555"><a href="/bbs/board.php?bo_table=column"><img src="images/bar01.gif" width="555" height="25" border="0" /></a></td>
<td><a href="/bbs/board.php?bo_table=family"><img src="images/bar02.gif" width="245" height="25" border="0" /></a></td>
</tr>
<tr>
<td height="10"></td>
<td rowspan="2"><?=latest("latest_onetap04", "family", 5, 20); // 최신글 오토탭무빙 ?></td>
</tr>
<tr>
<td width="555"><?=latest("new2", "column", 1, 30);?> </td>
</tr>
</table></td>
</tr>
</table></td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
<map name="Map" id="Map">
<area shape="rect" coords="10,3,194,61" href="/greeting.php" />
<area shape="rect" coords="9,75,190,142" href="/time.php" />
<area shape="rect" coords="7,152,187,196" href="http://www.present.or.kr/" target="_blank" />
<area shape="rect" coords="7,206,188,250" href="http://www.present.or.kr/element.php" target="_blank" />
<area shape="rect" coords="4,262,192,308" href="http://www.gapck.org/" target="_blank" />
<area shape="rect" coords="5,321,188,364" href="http://www.prayer24365.org/prayer24365_13.php" target="_blank" alt="38팀클릭" />
</map>
인덱스 내용입니다.
<?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
$g4['title'] = "";
include_once("./_head.php");
?>
<!-- 메인화면 최신글 시작 -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<table width="1000" cellpadding=0 cellspacing=0 style="margin:0 auto;"><tr><td valign=top><table width="100%" border="0" cellpadding="0"
cellspacing="0" style="margin:0 auto;">
<tr>
<td rowspan="2" valign="top"><img src="images/index_07.jpg" width="200" height="489" border="0" usemap="#Map" /></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/index_08_01.jpg" width="555" height="20" /></td>
</tr>
<tr>
<td background="images/index_08_02.jpg" width=20> </td>
<td width=515 align="center"><?=latest("dok.mnBn", "today_photo", 5, 10);?></td>
<td background="images/index_08_04.jpg" width=20> </td>
</tr>
<tr>
<td colspan="3"><img src="images/index_08_05.jpg" width="555" height="19" /></td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;">
<tr>
<td colspan="3"><img src="images/index_09_01.jpg" width="245" height="76" /></td>
</tr>
<tr>
<td background="/images/index_09_02.jpg" width=20> </td>
<td background="/images/index_09_03.jpg" width=190><?
include_once("./_common.php");
include_once("$g4[path]/lib/latest.lib.php");
echo latest("movie_test2", movie, 1, 18);
?></td>
<td background="/images/index_09_04.jpg" width=35> </td>
</tr>
<tr>
<td colspan="3"><img src="images/index_09_05.jpg" width="245" height="30" /></td>
</tr>
<tr>
<td height="5" colspan="3"></td>
</tr>
<tr>
<td colspan="3"><table width="245" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;">
<tr>
<td><a href="/bbs/board.php?bo_table=notice"><img src="images/index_11.jpg" width="245" height="27" border="0" /></a></td>
</tr>
<tr>
<td><table width="244" border="0" style="margin:0 auto;">
<tr>
<td width="0"> </td>
<td width="208">
<?=latest("aei2", "notice", 4, 20)?>
</td>
<td width="0"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;">
<tr>
<td width="555"><a href="/bbs/board.php?bo_table=column"><img src="images/bar01.gif" width="555" height="25" border="0" /></a></td>
<td><a href="/bbs/board.php?bo_table=family"><img src="images/bar02.gif" width="245" height="25" border="0" /></a></td>
</tr>
<tr>
<td height="10"></td>
<td rowspan="2"><?=latest("latest_onetap04", "family", 5, 20); // 최신글 오토탭무빙 ?></td>
</tr>
<tr>
<td width="555"><?=latest("new2", "column", 1, 30);?> </td>
</tr>
</table></td>
</tr>
</table></td></tr></table>
<!-- 메인화면 최신글 끝 -->
<?
include_once("./_tail.php");
?>
<map name="Map" id="Map">
<area shape="rect" coords="10,3,194,61" href="/greeting.php" />
<area shape="rect" coords="9,75,190,142" href="/time.php" />
<area shape="rect" coords="7,152,187,196" href="http://www.present.or.kr/" target="_blank" />
<area shape="rect" coords="7,206,188,250" href="http://www.present.or.kr/element.php" target="_blank" />
<area shape="rect" coords="4,262,192,308" href="http://www.gapck.org/" target="_blank" />
<area shape="rect" coords="5,321,188,364" href="http://www.prayer24365.org/prayer24365_13.php" target="_blank" alt="38팀클릭" />
</map>
3군대만 주시면 됩니다 헤드부분 본문부분 푸터 부분...
<table width="1000" align="center" cellpadding="0" cellspacing="0" border="0">
위에처럼 저렇게 되있는 3부분에만 style="margin:0 auto;"를 넣어주세요
나머지 테이블에는 필요없습니다~
지금 메인페이지에 *{margin:0; padding:0;}이 걸려있어서 모든 게시물이 가운데 정렬이 안되는거예요~
<table width="1000" align="center" cellpadding="0" cellspacing="0" border="0">
위에처럼 저렇게 되있는 3부분에만 style="margin:0 auto;"를 넣어주세요
나머지 테이블에는 필요없습니다~
지금 메인페이지에 *{margin:0; padding:0;}이 걸려있어서 모든 게시물이 가운데 정렬이 안되는거예요~
틀어짐 방지를 위해 position:relative값 주시구요 간혹 부모값을 안줌면 잘틀어져요 그러니 테이블하나 더추가하셔서 (부모값으로) width:100% 주시고 text-align:center 주시면 가운데 정렬되요
Rainsu님 감사합니다~ 그런데 그 값을 어디에다가 써주는 것인지 모르겠어요 ㅜㅜ
스크립트 소스 바로밑에 테이블 추가 마지막 끝소스에서 닫으세요
Rainsu님~ 아무리 봐도 몰르겠어요~ 이것 저것 다 해 봤는데 메인화면만 정렬이 안돼네요ㅜㅜ
맞을지는 모르겠지만 테이블 코딩이니 전체를 테이블로 100%로 한번 감싸보세요~!
크롬에서 현재사이트 소스를 까보니
<!-- 메인화면 최신글 시작 -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<div align="center" "margin:0 auto;width:1024px;text-align:left">
<table width="1000" cellpadding=0 cellspacing=0">
<tr>
<td valign=top> <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin:0 auto;">
<tr>
<td rowspan="2" valign="top"><img src="images/index_07.jpg" width="200" height="489" border="0" usemap="#Map" /></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/index_08_01.jpg" width="555" height="20" /></td>
</tr>
<tr>
<td background="images/index_08_02.jpg" width=20> </td>
<td width=515 align="center">
<style type="text/css">
* {
margin:0;
padding:0;
}
#MnBnCarousel {
width:515px;
float:right;
height:275px;
background:#ffffff;
border:10px solid #ffffff;
text-align:center;
}
/* -------- dok main 2.0! ------- */
<!-- 메인화면 최신글 시작 -->
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<div align="center" "margin:0 auto;width:1024px;text-align:left">
<table width="1000" cellpadding=0 cellspacing=0">
<tr>
<td valign=top> <table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin:0 auto;">
<tr>
<td rowspan="2" valign="top"><img src="images/index_07.jpg" width="200" height="489" border="0" usemap="#Map" /></td>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3"><img src="images/index_08_01.jpg" width="555" height="20" /></td>
</tr>
<tr>
<td background="images/index_08_02.jpg" width=20> </td>
<td width=515 align="center">
<style type="text/css">
* {
margin:0;
padding:0;
}
#MnBnCarousel {
width:515px;
float:right;
height:275px;
background:#ffffff;
border:10px solid #ffffff;
text-align:center;
}
/* -------- dok main 2.0! ------- */
이렇게 되어있네요 추출적용하는 부분 문제인듯 하네요
* {
margin:0;
padding:0;
}
이거 때문에 그런듯하네요
* {
margin:0;
padding:0;
}
이거 때문에 그런듯하네요