메뉴 수정을 도와 주세요 ^^; 정보
메뉴 수정을 도와 주세요 ^^;
본문
안녕하세요
고수님들
아래에서 은진 아빠님의 소스를 보시면
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=420&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%B8%DE%B4%BA&sop=and&page=3
<?
$g4_path = "../../gb4";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
if(!$css) $css="menu2";
$gr_id= "skin";
?>
<html>
<head>
<title>kmenu - CSS version</title>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<meta name="description" content="CSS 메뉴">
<meta name="keywords" content="CSS, css, CSS 메뉴, css 메뉴, 메뉴, 디자인, 웹디자인, 김정준, kimzz.com">
<meta name="author" content="김정준">
<meta name="Copyright" content="Creative Commons - http://kimzz.com">
<link href="<?=$css?>/menu.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="kmenu">
<span class="mori">
<? // 그룹 이름 출력
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";
$result = mysql_query($sql);
while ($row=mysql_fetch_array($result)) { echo "<a href='$g4[path]/bbs/group.php?gr_id=$gr_id'>$row[gr_subject]</a>"; }
?>
</span>
<ul style="list-style: none;margin: 0;padding: 0;">
<? // 메뉴 자동생성
$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' order by bo_order_search";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
echo "<li><a href='$g4[path]/bbs/board.php?bo_table=$row[bo_table]'>$row[bo_subject]</a></li>";
}
?>
</ul>
</div>
</body>
</html>
아래는 css입니다.
body {
font-family: 굴림, 굴림체;
margin: 0;
font-size: 12px;
}
/* 메뉴 정의 */
.mori {
width: 174px;
margin: 3px;
font-weight: bold;
border-top: 1px none #ccc;
border-right: 1px none #ccc;
border-bottom: 1px solid #ccc;
border-left: 1px none #ccc;
}
#kmenu {
width: 180px;
border: 1px solid #ccc;
margin: 10px;
}
#kmenu li a {
height: 20px;
text-decoration: none;
}
#kmenu li a:link, #kmenu li a:visited {
color: #000000;
display: block;
background: url("menu2.gif");
padding: 4 0 0 20px;
}
은진아빠님 답변 = "그룹이름 출력부의 소스가 지저분합니다. 프로짜집퍼인 저로서는 이부분 수정을 잘 모르겠네요" 라고 하셨는데요
역시나 초보인 제가 아무리 하려 해도 그룹이름 정렬이 잘 안되는군요
위그림에서 보면 "커뮤니티"라는 그룹이름이 왼쪽에 가서
붙어버렸습니다.
어떻게 그룹이름 출력부를 정중앙으로 정렬 할 수 잇는 방법을 가르쳐 주세요
고수님의 조언 을 부탁 올립니다.
감사합니다.
좋은 하루되세여 ^^
고수님들
아래에서 은진 아빠님의 소스를 보시면
http://www.sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=420&sca=&sfl=wr_subject%7C%7Cwr_content&stx=%B8%DE%B4%BA&sop=and&page=3
<?
$g4_path = "../../gb4";
include_once("$g4_path/common.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/head.sub.php");
if(!$css) $css="menu2";
$gr_id= "skin";
?>
<html>
<head>
<title>kmenu - CSS version</title>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<meta name="description" content="CSS 메뉴">
<meta name="keywords" content="CSS, css, CSS 메뉴, css 메뉴, 메뉴, 디자인, 웹디자인, 김정준, kimzz.com">
<meta name="author" content="김정준">
<meta name="Copyright" content="Creative Commons - http://kimzz.com">
<link href="<?=$css?>/menu.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="kmenu">
<span class="mori">
<? // 그룹 이름 출력
$sql = " select gr_id, gr_subject from $g4[group_table] where gr_id = '$gr_id'";
$result = mysql_query($sql);
while ($row=mysql_fetch_array($result)) { echo "<a href='$g4[path]/bbs/group.php?gr_id=$gr_id'>$row[gr_subject]</a>"; }
?>
</span>
<ul style="list-style: none;margin: 0;padding: 0;">
<? // 메뉴 자동생성
$sql = " select bo_table, bo_subject from $g4[board_table] where gr_id = '$gr_id' order by bo_order_search";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
echo "<li><a href='$g4[path]/bbs/board.php?bo_table=$row[bo_table]'>$row[bo_subject]</a></li>";
}
?>
</ul>
</div>
</body>
</html>
아래는 css입니다.
body {
font-family: 굴림, 굴림체;
margin: 0;
font-size: 12px;
}
/* 메뉴 정의 */
.mori {
width: 174px;
margin: 3px;
font-weight: bold;
border-top: 1px none #ccc;
border-right: 1px none #ccc;
border-bottom: 1px solid #ccc;
border-left: 1px none #ccc;
}
#kmenu {
width: 180px;
border: 1px solid #ccc;
margin: 10px;
}
#kmenu li a {
height: 20px;
text-decoration: none;
}
#kmenu li a:link, #kmenu li a:visited {
color: #000000;
display: block;
background: url("menu2.gif");
padding: 4 0 0 20px;
}
은진아빠님 답변 = "그룹이름 출력부의 소스가 지저분합니다. 프로짜집퍼인 저로서는 이부분 수정을 잘 모르겠네요" 라고 하셨는데요
역시나 초보인 제가 아무리 하려 해도 그룹이름 정렬이 잘 안되는군요
위그림에서 보면 "커뮤니티"라는 그룹이름이 왼쪽에 가서
붙어버렸습니다.
어떻게 그룹이름 출력부를 정중앙으로 정렬 할 수 잇는 방법을 가르쳐 주세요
고수님의 조언 을 부탁 올립니다.
감사합니다.
좋은 하루되세여 ^^
댓글 전체
.mori {
width: 174px;
margin: 3px;
font-weight: bold;
border-top: 1px none #ccc;
border-right: 1px none #ccc;
border-bottom: 1px solid #ccc;
border-left: 1px none #ccc;
text-align:center; // 이 부분을 추가해 보세요.
}
width: 174px;
margin: 3px;
font-weight: bold;
border-top: 1px none #ccc;
border-right: 1px none #ccc;
border-bottom: 1px solid #ccc;
border-left: 1px none #ccc;
text-align:center; // 이 부분을 추가해 보세요.
}

izen 님 감사합니다.
잘되네요
고수님의 조언에 탄복 했습니다.
즐거운 하루 되세여 ^^
잘되네요
고수님의 조언에 탄복 했습니다.
즐거운 하루 되세여 ^^