2016-07-22 36 views
2
<td width="570"> 
    <table bgcolor="#FFFFFF" cellpadding="20" cellspacing="0"> 
     <tbody> 
     <tr> 
      <td width="530"> 
       <table cellpadding="0" cellspacing="0"> 
        <tbody> 
        <tr> 
         <td rowspan="7" align="center" height="100%" valign="top" width="85"><img src="img here!"></td> 
         <td rowspan="7" height="100%" width="20"> 
          <table width="20"> 
           <tbody> 
           <tr> 
            <td></td> 
           </tr> 
           </tbody> 
          </table> 
         </td> 
        </tr> 
        <tr> 
         <td style="line-height:10px;font-size:1px;" colspan="1" nowrap="" height="10" valign="top" width="425"></td> 
        </tr> 
        <tr> 
         <td width="425"> 
          <h3 style="color: #172E4D; font-family: Arial,sans-serif; font-size: 16px; line-height:19px; font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"> How to sell a cafe, sandwich bar, fish and chip shop... </h3> 
         </td> 
        </tr> 
        <tr> 
         <td style="line-height:15px;font-size:1px;" colspan="1" nowrap="" height="15" valign="top" width="425"></td> 
        </tr> 
        <tr> 
         <td width="425"></td> 
        </tr> 
        <tr> 
         <td style="color: #666666; font-family: Arial,sans-serif; font-size: 14px; line-height:17px; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" width="100%">Well, not just selling a cafe, selling any food or drink related business can be tough, with over 8,000 other food and drink related businesses actively trying to sell you need the right advice.</td> 
        </tr> 
        <tr> 
         <td style="line-height:10px;font-size:1px;" colspan="1" nowrap="" height="10" valign="top" width="425"></td> 
        </tr> 
        <tr> 
         <td align="left" valign="middle" width="425"> 
          <table border="0" cellpadding="0" cellspacing="0"> 
           <tbody> </tbody> 
          </table> 
         </td> 
        </tr> 
        </tbody> 
       </table> 
      </td> 
     </tr> 
     </tbody> 
    </table> 
</td> 

嗨,我期待將圖像移動到右側,並將文本移到左側。我一直試圖做幾個小時,但似乎無法做到,請幫助!在表格中移動圖像

+0

什麼意象?什麼文字?你做了什麼具體的嘗試來解決這個問題? –

+0

你好我已經添加了一個屏幕截圖到它看起來像這個文本,但我想改變圖像的權利和文字左側。我一直在尋找谷歌幾個小時,如何做到這一點,只是不能正確的,如果我得到的圖片正確的文本不工作。 https://i.gyazo.com/c7250eab82e609d9d972b33ff6684a5f.png –

回答

2

試試這個,你有很多不必要的錶行和列。圖像現在跨越2行,並在右側。

<table bgcolor="#FFFFFF" cellpadding="20" cellspacing="0" style="width:570px"> 
    <tbody> 
     <tr> 
      <td width="425px"> 
       <h3 style="color: #172E4D; font-family: Arial,sans-serif; font-size: 16px; line-height:19px; font-weight: bold; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"> How to sell a cafe, sandwich bar, fish and chip shop... </h3></td> 
      <td rowspan="7" align="center" height="100%" valign="top" width="85"> 
       <img src="img here!"> 
      </td> 
     </tr> 
     <tr> 
      <td style="color: #666666; font-family: Arial,sans-serif; font-size: 14px; line-height:17px; font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;" width="100%">Well, not just selling a cafe, selling any food or drink related business can be tough, with over 8,000 other food and drink related businesses actively trying to sell you need the right advice.</td> 
     </tr> 
    </tbody> 
</table> 
+0

請標記爲答案,如果這解決了您的問題 – MMoore94

+0

非常感謝您解決了這個問題,抱歉問一個愚蠢的問題。 –

+0

沒問題!我想我可以在一兩分鐘內幫忙。 – MMoore94