How do I top align this table on my landing page?

时间:2015-11-12 11:23:11

标签: html css

The table with the two columns under "Meet the rest of the team" just won't go top aligned. I've tried valign="top" as well as but nothing seems to shift it.

Can someone point me in the right direction to make the copy top align with the images?

The page is here: http://www.rolaa.me/portrait-special/

Many thanks! Carola.

3 个答案:

答案 0 :(得分:0)

Looked fine when I (in Chrome developer mode) removed the empty P tag between the image and the text div.

答案 1 :(得分:0)

There are few way to handle it:

1) with css: add it in style.css file

p:empty {
  display: none;
}

2) With Javascript:

jQuery('p:empty').remove();

3) With wordpress filters: keep it in functions.php page of your theme

remove_filter('the_content', 'wpautop');

Try any one and see.

答案 2 :(得分:0)

You have to remove empty p tag, or if can't remove apply the below css.

    .cosmotable p::empty{display:none;}