CSS定位帮助

时间:2010-08-08 16:27:41

标签: css

http://rent.neighborrow.com/items/herndon需要帮助将需求移到右侧

    <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 个答案:

答案 0 :(得分:1)

使用萤火虫,我添加了浮动:右;在div ='tabs'里面。这就是你想要的吗?

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