2010-08-08 6 views
0

http://rent.neighborrow.com/items/herndon, 나는 플로트 추가 방화범을 사용하여 올바른CSS 위치 도움

<div id="tabs" style="width:350px;height:50px;"> 
     <ul style="width:320px;height:35px;"> 
      <li><a href="#tabs-1">USERS Have</a></li> 
      <li><a href="#tabs-2">USERS Want</a></li> 
     </ul> 
     <div id="tabs-1" style="width:350px;height:50px;""> 

      <ul class="user_have_list" style="width:350px;height:50px;"> 
       <?php if(count($approved_items)): ?> 
       <?php foreach($approved_items as $item): ?> 
       <? 
       //print_r($item); 
       ?> 
       <li style="width:330px"><?= $html->link($item["items"]["item"], array("controller" => "items", "action" => "view", $item["items"]["id"])); ?></li> 
       <?php endforeach; ?> 
       <?php else: ?> 
       <li style="width:330px"><a href="#">Nothing Here</a></li> 
       <?php endif; ?> 
      </ul> 
     </div> 
     <div id="tabs-2" style="width:350px;height:50px;""> 
      <ul class="user_want_list"> 
      <?php 
      //if($_SESSION[Auth][User][id]!="") 
      if(1==1) 
       { 
      if(count($requests)): ?> 
       <?php foreach($requests as $request): ?> 
        <li style="width:330px"><?= $html->link($request["Request"]["item"], array("controller" => "requests", "action" => "view", $request["Request"]["id"])); ?></li> 
       <?php endforeach; ?> 
      <?php else: ?> 
       <li style="width:330px">Nothing</li> 
      <?php endif; } ?> 
      </ul> 
     </div> 

    </div> 

답변

1

에 탭을 필요가 이동 도움이 필요합니다 : 권리; div = 'tabs'안에 있습니다. 당신이 원하는 것은 이것입니까?

<div id="tabs" style="width:350px;height:50px;float:right;"> 
+0

아마도 id는 그것을보아야합니다 ... 코드 줄은 ... style.css로 가정합니까? – adam

+0

또한 - 나는 다른 페이지로 이동할 필요가 없기 때문에 반드시 마스터 CSS를 가지고 놀고 싶지 않습니다 ... 이제이 페이지에서 바로 이동할 수 있습니다 – adam

+0

코드 첫 줄에 있습니다. 여기에 스타일 속성을 사용했기 때문에 float : right를 추가하십시오. 그 안에. – khairil