• I am having a problem with table alignment. It works fine in a simple html editor but on my website the first column appears below the secod column.

    Also the spacing between the columns is too tight even if I try cell padding, or even a blank middle column.

    jordanlancaster.patbell.co.uk/publications

Viewing 3 replies - 1 through 3 (of 3 total)
  • This helps:
    td{vertical-align:top !important}
    But you still have some stray p or other tags taking space in the first cell. Tables aren’t really great for layout and I’d consider floating the images to the right. Or better yet, create blog categories for the content and use the theme’s blog formatting.

    Thread Starter patbell101

    (@patbell101)

    Where should td{vertical-align:top !important} be placed?

    Assuming you’re using a custom or child theme (which you should be), place it in the style.css file. Look at the html for the table in the post editor and make sure there are no other tags before the text starts in the first cell.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Table alignment and spacing problem’ is closed to new replies.