Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Html picture in table, align vertically

Tags:

html

css

I would like to create a table with image with html: http://prntscr.com/aixqcj

But the picture leads to a large space at the bottom of the image (padding is 9px, the space is not padding) and that causes a large amount of space on top of the text in the right column: http://prntscr.com/aiy8tg

Eventually I would like the image to align vertically in the column (I saw a lot of posts about vertical alignment but didn't find the solution yet).

Could you help?

like image 967
Myra Avatar asked Jul 15 '26 06:07

Myra


1 Answers

Try with valign="top" on the td.

If you are using HTML5, you will have to use the CSS vertical-align property: http://www.w3schools.com/tags/att_td_valign.asp

like image 131
nikoskip Avatar answered Jul 18 '26 18:07

nikoskip



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!