Creating three images: first on left, second centered, third on right.

Issue

Creating three images: first on left, second centered, third on right.

Solution

Creating three images on one line requires a table with three cells, allowing the images to be centered evenly.

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><img src="http://www.computerhope.com/logo.gif"></td>
<td><p align="center"><img src="http://www.computerhope.com/logo.gif"></td>
<td align="right"><img src="http://www.computerhope.com/logo.gif"></td>
</tr>

Examples

The above source code would show the below three images.

Logo

Logo

Logo

Additional information

  • See the HTML tables page for further information and help with HTML tables.
  • Category
  • HTML Q&A
  • Related pages
  • HTML Help
  • Solved?
  • Were you able to locate the answer to your question?