• I am using a custom WordPress theme and having difficulties with a table in a page. It is a 2 column,1 row table. Small image in the first column and text in the second column. The problem is that they will not line up.

    Here is the code:

    <table>
    <tbody>
    <tr>
    <td><img src="http://domainname.com/blue.png" alt="" width="23" height="26" /></td>
    <td>Text goes here</td>
    </tr>
    </tbody>
    </table>

    What happens it the image is low and the test is high. I have tried forcing alignment and nothing seems to work.

    Any suggestions?

Viewing 1 replies (of 1 total)
  • Thread Starter smrtalex

    (@smrtalex)

    SOLVED with:

    <table>
    <tbody>
    <tr>
    <td><img src="http://domainname.com/blue.png" alt="" width="23" height="26" /></td>
    <td style="vertical-align:middle;">Text goes here</td>
    </tr>
    </tbody>
    </table>
Viewing 1 replies (of 1 total)

The topic ‘Images and Text alignment’ is closed to new replies.