폭 때문에 질문드립니다. 채택완료
</strong> </p><p><span style="color: rgb(255, 0, 0);"> <style type="text/css"></span>
<span style="color: rgb(255, 0, 0);"> <? } ?></span>
<span style="color: rgb(255, 0, 0);"> #board_category_ul li{float:left; text-align:center; margin-left:-1px; margin-bottom:-1px; border:1px solid #ccc;}</span>
<span style="color: rgb(255, 0, 0);"> #board_category_ul li a{display:block; min-width:80px; padding:4px 7px; color:#454545; background-color:#fff}</span>
<span style="color: rgb(255, 0, 0);"> #board_category_ul li a#cate_select{background-color:#454545; font-weight:bold; color:#fff}</span>
<span style="color: rgb(255, 0, 0);"> </style></span></p><p><span style="color: rgb(255, 0, 0);"> <? if ($is_category) { ?></span>
<span style="color: rgb(255, 0, 0);"> <form name="fcategory" method="get" style="margin: 0 0 0 1px;"></span>
<span style="color: rgb(255, 0, 0);"> <ul id="board_category_ul"></span>
<span style="color: rgb(255, 0, 0);"> <?</span>
<span style="color: rgb(255, 0, 0);"> $arr = explode("|", $board[bo_category_list]);</span>
<span style="color: rgb(255, 0, 0);"> $str = '<li><a href="'.$g4[bbs_path].'/board.php?bo_table='.$bo_table.'"';</span>
<span style="color: rgb(255, 0, 0);"> if($sca == '') $str .= ' id="cate_select"';</span>
<span style="color: rgb(255, 0, 0);"> $str .= '>전체</a></li>';</span></p><p><span style="color: rgb(255, 0, 0);"> for ($i=0; $i<count($arr); $i++) {</span>
<span style="color: rgb(255, 0, 0);"> $category = trim($arr[$i]);</span>
<span style="color: rgb(255, 0, 0);"> if($category=='') continue;</span>
<span style="color: rgb(255, 0, 0);"> $str .= '<li><a href="'.$g4[bbs_path].'/board.php?bo_table='.$bo_table.'&sca='.urlencode($category).'"';</span>
<span style="color: rgb(255, 0, 0);"> if($sca == $category) $str .= ' id="cate_select"';</span>
<span style="color: rgb(255, 0, 0);"> $str .= '>'.$category.'</a></li>';</span>
<span style="color: rgb(255, 0, 0);"> }</span></p><p><span style="color: rgb(255, 0, 0);"> echo $str;</span>
<span style="color: rgb(255, 0, 0);"> ?></span>
<span style="color: rgb(255, 0, 0);"> </ul></span>
<span style="color: rgb(255, 0, 0);"> </form></span>
<span style="color: rgb(255, 0, 0);"> <? } ?></span></p><p><strong>
위에 같이 카테고리 사용중인데 출력수에 따라 폭이 바뀌는데 출력수에 상관없이 게시판 폭에 100%로가 될려면 어떻게 해냐하나요? 그러니깐 카테고리가 2개여도 폭을 꽉 채우고 5개라도 꽉 채워 졌으면 합니다. 어떻게 하면 될까요?
답변 1개
답변을 작성하려면 로그인이 필요합니다.
로그인