외각 테두리 문의 드립니다.
본문
사진에 보시면 외각에 제가 검은색으로 표시한 부분이 있습니다... 그 부분에 테두리를 넣고싶습니다.
혹시 가능할까요... 부탁드립니다.
소스 입니다.
<?php
include_once('./_common.php');
include_once(G5_LIB_PATH.'/latest.lib.php');
$g5['title'] = $group['gr_subject'];
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/group.php');
return;
}
if(!$is_admin && $group['gr_device'] == 'mobile')
alert($group['gr_subject'].' 그룹은 모바일에서만 접근할 수 있습니다.');
include_once('./_head.php');
?>
<div class="latest">
<?php
$sql = " select * from {$g5['menu_table']} ";
$sql.= " where me_link like '%bo_table%' ";
$sql.= " and me_code like '{$menu['me_code']}%' ";
$sql.= " order by me_code, me_order ";
$qry = sql_query($sql);
for ($i=1; $row=sql_fetch_array($qry); ++$i) {
preg_match("/bo_table=([0-9a-zA-Z_]+)&/", $row['me_link'].'&', $match);
$bo_table = $match[1];
if (!trim($bo_table)) continue;
echo "<div class=\"item\">".latest("mw5", $bo_table, 5, 50, 0)."</div>";
if ($i%2==0) echo "</div><div class=\"latest\">";
}
?>
</div>
<?php
include_once('./_tail.php');
답변 4
그 부분은 이미 라인이 적용된 것 같은데요. 크기랑 색만 변경하면 될 것 같은데..
/theme/mw5/style.css 파일에서 빨간색 부분처럼 border 색이랑 두께 변경해보세요.
.main {
width:740px;
width:-webkit-calc(100% - 310px); /* for Chrome, Safari */
width: -moz-calc(100% - 310px); /* for Firefox */
width: calc(100% - 310px); /* for IE */
overflow:hidden;
background-color:#fff;
padding:10px;
box-shadow: 0 1px #EBEBEB;
border-radius: 3px;
border: 5px solid;
border-color: #000000 #000000 #000000;
background-color:#fff;/* 게시판 배경색+ */
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}
css 를 사용하세요.
<style>
.latest { border:1px #c2c2c2 solid; }
</style>
latest라는 클래스명을 아래쪽에도 썼기때문에 가운데 게시판변로 중이하나씩다들어간겁니다.
<div class="latest" style="border:1px solid #000000;">
<?php
$sql = " select * from {$g5['menu_table']} ";
$sql.= " where me_link like '%bo_table%' ";
$sql.= " and me_code like '{$menu['me_code']}%' ";
$sql.= " order by me_code, me_order ";
$qry = sql_query($sql);
for ($i=1; $row=sql_fetch_array($qry); ++$i) {
preg_match("/bo_table=([0-9a-zA-Z_]+)&/", $row['me_link'].'&', $match);
$bo_table = $match[1];
if (!trim($bo_table)) continue;
echo "<div class=\"item\">".latest("mw5", $bo_table, 5, 50, 0)."</div>";
if ($i%2==0) echo "</div><div class=\"latest\">";
}
?>
</div>