WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Tables displaying strangely, HTML help? (3 posts)

  1. makemoore
    Member
    Posted 2 years ago #

    Hello all, and thanks in advance for your help. I'm working on a table in one of my pages (displaying Amazon affiliate images on one side, and descriptions on the other) and I can't sort out what I'm doing wrong. I simply want the text to appear next to the image (it's in a separate cell to the right) but on two out of my three cells, the text is displaying much lower than the image, despite the cell being formatted to align text to the top.

    Here is the page in question: http://makemoore.com/?page_id=16
    And here is the code: http://pastebin.com/zrg2XvUZ
    (Please ignore the empty cells at the bottom; I will be filling them, but I want to figure out what I'm doing wrong first.)

  2. Matt van Andel
    Member
    Posted 2 years ago #

    The valign attribute is deprecated and some browsers (like Chrome) ignore it. Instead, use this CSS rule (inline or stylesheet):

    vertical-align:top;

    Inline, you can simply replace valign="top" with style="vertical-align:top;"

  3. makemoore
    Member
    Posted 2 years ago #

    Ohhhh, you are a lifesaver. It worked perfectly, thank you so much!!

Topic Closed

This topic has been closed to new replies.

About this Topic