cellpadding - basic table padding with html & dreamweaver -


i haven't used dw while, excuse beginners question.

i have created table 2 rows & 1 column within html. have inserted image in top row , 1 image in bottom row.

with border, cell padding , cell spacing set 0, cannot figure out why see pixel padding/spacing @ bottom of each cell. have changed background colour of cells in table red easy show padding.

changing vertical alignment cells not change issue.

i haven't created css page this.

from recall in previous experience dw padding , spacing quite simple when creating basic table in html, not sure going wrong.

any appreciated on going wrong here.

link resulting output when preview code in safari and/or chrome

https://dl.dropboxusercontent.com/u/13258883/dw.png

    <!doctype html> <html>     <head>         <meta charset="utf-8">         <title>untitled document</title>     </head>      <body>         <table width="512" border="0" cellpadding="0" cellspacing="0" >          <tbody>             <tr>               <td colspan="2" bgcolor="#f50408"><img src="images/untitled-10_01.gif"     width="512" height="107" alt=""/></td>              </tr>             <tr>               <td colspan="2" bgcolor="#f50408"><img src="images/untitled-10_02.gif" width="512" height="93" alt=""/></td>             </tr>         </tbody>         </table>     </body> </html> 

found answer add following code in head

       <style>         img {              display:block;             }         </style> 

Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -