기본 게시판 상단 줄일려면..
본문
안녕하세요.
아래와 같이 상단 부분 head 부분에 그림을 집어 넣었는데 위에 한칸이 더 들어 갓는데
이거 안없애 집니다. (기본 설치시 잇는 소스로 수정)
뭔가 한줄이 들어간것 같은데 못하겠어요 ;;;;
녹색 부분이 그림 파일 들어간 곳입니다. 수정 좀 부탁드립니다.
코드는
// 상단 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_head']) {
if (!@include_once($config['cf_include_head'])) {
die('기본환경 설정에서 상단 파일 경로가 잘못 설정되어 있습니다.');
}
return; // 이 코드의 아래는 실행을 하지 않습니다.
}
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/head.php');
return;
}
?>
<!-- 상단 시작 { -->
<div id="hd">
<h1 id="hd_h1"><?php echo $g5['title'] ?></h1>
<div id="skip_to_container"><a href="#container">본문 바로가기</a></div>
<?php
if(defined('_INDEX_')) { // index에서만 실행
include G5_BBS_PATH.'/newwin.inc.php'; // 팝업레이어
}
?>
<div id="hd_wrapper">
<div id="logo">
<a href="<?php echo G5_URL ?>"><img src="<?php echo G5_IMG_URL ?>/diyworldlogo.png" alt="<?php echo $config['cf_title']; ?>"></a>
</div>
<fieldset id="hd_sch">
<legend>사이트 내 전체검색</legend>
<form name="fsearchbox" method="get" action="<?php echo G5_BBS_URL ?>/search.php" onsubmit="return fsearchbox_submit(this);">
<input type="hidden" name="sfl" value="wr_subject||wr_content">
<input type="hidden" name="sop" value="and">
<label for="sch_stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
<input type="text" name="stx" id="sch_stx" maxlength="20">
<input type="submit" id="sch_submit" value="검색">
</form>
<script>
답변 1
default.css 파일에서
#hd_wrapper {position:relative;margin:0 auto;padding:26px 0;width:970px;zoom:1}
여기에서 padding 값이 위아래로 26px 들어가 있는데 이 값을 줄이시면 됩니다. 위아래 다르게 지정하실려면 각각 padding값을 지정하시면 되고요.
!-->