Jump to content

Having Trouble Aligning Text In Two <td>, Same Row


Recommended Posts

Hi, here is a screen shot of my problem:screen-shot2.jpgscreen-shot.jpgI want the text to all align on the same line, the top. Here is my code:

<div class="grid_4">	<img src="/images/v1_1/surechoice/ac_subboxTop.gif" />	<div class="ac_subBox">	<div class="ac_boxtitleBig">Referral Program</div>	<div class="ac_boxsubheadBig">Save your clients time and money</div>	<table>	<tr>	<td width="107">	<img src="/images/v1_1/surechoice/ac_postnote.gif" />	</td>	<td>	<div class="ac_rightimageText">Refer the online alternative to traditional payroll<br /><br /><a href="#">> Learn More</a>	</div>	</td>	</tr>	</table>	</div><img src="/images/v1_1/surechoice/ac_subboxBottom.gif" /></div>

I dont think you need the css, but it can be found here: CSSPlease help, thank you!!

Link to post
Share on other sites

It seems by default, table cells are vertical aligned in the middle, which looks what it is doing on your page. try adding valign="top" or style="vertical-align: top;"<td valign="top"> <div class="ac_rightimageText">Refer the online alternative to traditional payroll<br /><br /><a href="#">> Learn More</a> </div> </td>or<td style="vertical-align: top;"> <div class="ac_rightimageText">Refer the online alternative to traditional payroll<br /><br /><a href="#">> Learn More</a> </div> </td>

Edited by dsonesuk
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...