head와 게시판 사이의 왼쪽메뉴와 중간 게시판 배치법좀알려주세요 정보
head와 게시판 사이의 왼쪽메뉴와 중간 게시판 배치법좀알려주세요
본문
게시판에
상단 파일을 head.php를 쓰는데
왼쪽메뉴작업을 하고서 head로 저장한후 게시판에서 head를 지정하고나면
게시판이 페이지 하단으로 밀려나가 있는 경우가 많습니다
고민하면서 찾아보니 스타일 시스가 적용해서 잡는 것같은데
소스 적용하는 방법이 잘안되는 군요 그래서 퍼다가 붙이는 식으로만 하고 있는데
정확하게 왼쪽메뉴와 옆중간 메뉴를 제어하는 css 문법이 어떻게 되는지 고수님들좀
한수 알려주세용......
댓글 전체
index.php 소스(아래 소스로 head.php 와 foot.php 파일을 만듭니다)
====================================================
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body>
<table width="75%" border="1">
<tr>
<td width="14%" bgcolor="#6699CC">LOGO</td>
<td width="86%" bgcolor="#FF9900">메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|</td>
</tr>
<tr>
<td valign="top" bgcolor="#999999">MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br> </td>
<td valign="top">내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
내용<br> </td>
</tr>
<tr>
<td colspan="2"><div align="center">Copy right</div></td>
</tr>
</table>
</body>
</html>
==============================================================
소스 잘 보시면 이해갈겁니다. 간단해요..
보다싶이 소스에서 내용부터 맨위까지 head.php 파일이 되고 아래부분은 foot.php 파일이 됩니다.
위에 index.php파일에서 자신 맘들게 맘껏 디자인하신후에 head와 foot로 나누면 됩니다.
head.php 소스
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body>
<table width="75%" border="1">
<tr>
<td width="14%" bgcolor="#6699CC">LOGO</td>
<td width="86%" bgcolor="#FF9900">메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|</td>
</tr>
<tr>
<td valign="top" bgcolor="#999999">MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br> </td>
<td valign="top">내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
foot.php 소스
</td>
</tr>
<tr>
<td colspan="2"><div align="center">Copy right</div></td>
</tr>
</table>
</body>
</html>
====================================================
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body>
<table width="75%" border="1">
<tr>
<td width="14%" bgcolor="#6699CC">LOGO</td>
<td width="86%" bgcolor="#FF9900">메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|</td>
</tr>
<tr>
<td valign="top" bgcolor="#999999">MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br> </td>
<td valign="top">내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
내용<br> </td>
</tr>
<tr>
<td colspan="2"><div align="center">Copy right</div></td>
</tr>
</table>
</body>
</html>
==============================================================
소스 잘 보시면 이해갈겁니다. 간단해요..
보다싶이 소스에서 내용부터 맨위까지 head.php 파일이 되고 아래부분은 foot.php 파일이 됩니다.
위에 index.php파일에서 자신 맘들게 맘껏 디자인하신후에 head와 foot로 나누면 됩니다.
head.php 소스
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<body>
<table width="75%" border="1">
<tr>
<td width="14%" bgcolor="#6699CC">LOGO</td>
<td width="86%" bgcolor="#FF9900">메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|메인메뉴|</td>
</tr>
<tr>
<td valign="top" bgcolor="#999999">MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br>
MENU<br> </td>
<td valign="top">내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
내용<br>
foot.php 소스
</td>
</tr>
<tr>
<td colspan="2"><div align="center">Copy right</div></td>
</tr>
</table>
</body>
</html>
tail.php 아닐까요오~~~~~~~~~~~~~~~~~~~~~~~~~`^^;;;;;;;;;;;;;;;;;;;;
head와 게시판을 인클루드로 섞어 쓸 경우 게시판이 아래로 밀려 나가는 가장 많은 경우는 태그가 아닐까 하네요.
예를 들자면 어딘가에서 </td>나 </tr>등이 빠져서 그런 경우를 많이 봤어요.
특히 게시판 시작되기 바로 앞부분을 유심히 보면 좋을 것 같네요.
태그 해석시 그런 것이 빠지면 그냥 하나의 table이 끝나나 보다.. 하고 자동으로 </table>처리를 해 버리거든요...
귀찮아도 다시 한번 확인해 보시겠어요? 아주 사소한 것으로 망가지는 경우가 많으니...
예를 들자면 어딘가에서 </td>나 </tr>등이 빠져서 그런 경우를 많이 봤어요.
특히 게시판 시작되기 바로 앞부분을 유심히 보면 좋을 것 같네요.
태그 해석시 그런 것이 빠지면 그냥 하나의 table이 끝나나 보다.. 하고 자동으로 </table>처리를 해 버리거든요...
귀찮아도 다시 한번 확인해 보시겠어요? 아주 사소한 것으로 망가지는 경우가 많으니...
감사합니다 모임카페님 그리고 티파님
왼쪽메뉴 등 레이아웃