css - table alignment issue html -


<table width="100%" border="0">   <table width="600" align="center" bgcolor="#ffffff">      <tr>        <td width="600" colspan="120">banner image</td>      </tr>      <tr>         <td width="400" colspan="80"></td>         <td width="10" colspan="2" bgcolor="yellow"></td>         <td width="190" colspan="38"></td>      </tr>   </table>  </table> 

the alignment messed 2nd row. how can resolved?

looks there lot of issues here.

first off, isn't valid html. second table tag can't go have it. need like:

<table width="100%" border="0">     <tr><td>     <table width="600" align="center" bgcolor="#ffffff">         <tr>             <td width="600" colspan="3">banner image</td>         </tr>         <tr>             <td width="400"></td>             <td width="10" bgcolor="yellow"></td>             <td width="190"></td>         </tr>     </table> </td></tr> </table> 

which solve immediate problem. however, why on earth have 120 columns? seems wrong standard.

note removed colspan because it's use here seemed inappropriate.

also, might ask why have outer table tag anyway. it's not doing can't done in better manner.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -