div触摸浏览器的左右两端

时间:2013-02-14 19:58:02

标签: html css html5 css3 css-float

如何移动defie div左边和销售订单div ...... 我给浮动物业但没有工作..... 我想要一个div触摸极左,另一个div向右移动.... 在下面提供我的代码.....

http://jsfiddle.net/zbyLy/3/embedded/result/

<div style="padding-left: 41px; padding-top: 10px; float:left;">
            <a class="" href="#">
              <img alt="change" class="defieLogo" src="http://www.defie.co/designerImages/defie_logo_only.png">
            </a>
            <p style="margin-top: 5px; margin-bottom: 0px;">47657 Lakeview Blvd, Fremont CA 94538</p>
            <p>Tel: 510-657-8981 <span style="padding-left: 18px;">wwww.abcdfg.com</span></p>
      </div>

      <div style="border: 1px solid red; width: 300px; float:left;">
        <p style="color: #14486b; font-size: 18px; font-family: arial; font-wieght: bold; ">Sales Order</p>
        <p style=>Customer No. ABC01</p>
        <p style=>sales Order No. 100001</p>
        <p style=>Est. Ship Date 2/24/2013</p>
      </div>

1 个答案:

答案 0 :(得分:1)

<div style="border: 1px solid red; width: 300px; float:right;">

演示:http://jsfiddle.net/zbyLy/