Tuesday, August 30, 2011

Align visual element using table in HTML

How  align  visual  element  using  table  or  assemble  images  using  table in HTML ?
 <html>

<head>
  <title>that's good</title>
</head>

<body bgcolor="#FFFFFF">
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><img src="http://www.gif-picture.com/D/donkey/gif-pict-donkey-18.gif" alt="" /></td>
      <td><img src="http://www.gif-picture.com/P/polecat/gif-pict-polecat-1.gif" alt="" /></td>
      <td><img src="http://www.wilsoninfo.com/bearfish.gif" alt="" /></td>
    </tr>

    <tr>
      <td><img src="http://www.gif-picture.com/D/donkey/gif-pict-donkey-18.gif" alt="" /></td>
      <td><img src="http://www.gif-picture.com/P/polecat/gif-pict-polecat-1.gif" alt="" /></td>
      <td><img src="http://www.wilsoninfo.com/bearfish.gif" alt="" /></td>
    </tr>

    <tr>
      <td><img src="http://www.gif-picture.com/D/donkey/gif-pict-donkey-18.gif" alt="" /></td>
      <td><img src="http://www.gif-picture.com/P/polecat/gif-pict-polecat-1.gif" alt="" /></td>
      <td><img src="http://www.wilsoninfo.com/bearfish.gif" alt="" /></td>
    </tr>

  </table>
</body>
</html>

(NOTE-Don't give space between TD tag and IMG SRC tag because space create problem on browser "Internet explorer"  . )
that's good

No comments:

Post a Comment