My Table Code Is Not Aligning

edited May 2013 in Web Development
When I embed the table code on my website it pushes the right side down below the left side.

Here is the code I am using:
<table width="100%" border="0" cellpadding="0">   
     <tr>
          <td valign="top" width="300" cellpadding="0">
               <p><img src="images/main.jpg" border="0" alt="Toronto"></p>
          </td>

          <td valign="top" width="190" cellpadding="0">
               <h2>City</h2>
               
          </td>

          <td valign="top" align="right" width="180">
               <h3>Toronto></h3>
          </td>
     </tr>

Comments

  • valign has been depreciated by most browsers, use:
    <td align="right" width="180" style="vertical-align:top;">
    
  • Top man! that did the trick, thanks! <!-- s;) --><img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink" /><!-- s;) -->
Sign In or Register to comment.