html - Table Styling Issue -


i have coded table reason, right column not aligning left column.

the left column being placed down. here fiddle of this: http://jsfiddle.net/5me4l/

code:

<table width='620'>     <tr>         <td width='310'>             <span style='font-size:21px; font-family:arial, helvetica, sans-serif; color:#00abbd; font-weight:bold'>pay monthly</span>             <table width='310' cellpadding='6' cellspacing='0' border='0' style='border-color:#00abbd; border-width:0px; border-style:solid; padding:3px'>                 <tr bgcolor='#eeeeee'><td width='160'><p class='rates' style='color:#00abbd;'><strong>call argentina</strong></p></td><td><p class='rates'>&euro; 3.88 /min</p></td></tr>                 <tr><td><p class='rates' style='color:#00abbd;'><strong>call malta</strong></p></td><td><p class='rates'>&euro; 3.40/min</p></td></tr>                 <tr bgcolor='#eeeeee'><td><p class='rates' style='color:#00abbd;'><strong>call zone 4 </strong> </p></td><td><p class='rates'>&euro; 3.88 /min</p></td></tr>                 <tr><td><p class='rates' style='color:#00abbd;'><strong>calling other zones</strong></p></td><td><p class='rates'>&euro; 4.00 /min</p></td></tr>                 <tr bgcolor='#eeeeee'><td><p class='rates' style='color:#00abbd;'><strong>receiving calls</strong></p></td><td><p class='rates'>&euro; 1.46 /min</p></td></tr>                 <tr><td>                     <p class='rates' style='color:#00abbd;'><strong>data</strong></p></td><td><p class='rates'> &euro; 17.48</p>                     </td></tr>                 <tr bgcolor='#eeeeee'><td><p class='rates' style='color:#00abbd;'><strong>sms</strong></p></td><td><p class='rates'>&euro; 0.39</p></td></tr>                 <tr><td><p class='rates' style='color:#00abbd;'><strong>mms</strong></p></td>                     <td><p class='rates'>&euro; 0.22 + €17.48</p></p></td></tr>             </table>              <td width='310'>                 <span style='font-size:21px; font-family:arial, helvetica, sans-serif; color:#00abbd; font-weight:bold'>pay monthly</span>                 <table width='310' cellpadding='6' cellspacing='0' border='0' style='border-color:#00abbd; border-width:0px; border-style:solid; padding:3px'>                     <tr bgcolor='#eeeeee'><td width='160'><p class='rates' style='color:#00abbd;'><strong>call argentina</strong></p></td><td><p class='rates'>&euro; 3.88 /min</p></td></tr>     </tr> </table> 

this how should look: enter image description here

many guys.

add vertical-align:top property tr:

tr {     vertical-align: top; } 

see jsfiddle


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -