Ask Your Question
2

How can I create a one-pixel gap below an image in an HTML email using Outlook 2010?

asked 2021-08-27 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-02-22 14:00:00 +0000

bukephalos gravatar image

One way to create a one-pixel gap below an image in an HTML email using Outlook 2010 is to add some inline CSS to the image tag. Here's an example:

<img src="image.jpg" style="display:block; margin-bottom:1px;" />

The display:block attribute ensures that the image is treated as a block-level element, allowing the margin-bottom attribute to create a gap below the image. You can adjust the value of the margin-bottom attribute to increase or decrease the size of the gap as needed.

Keep in mind that different email clients may interpret CSS differently, so it's always a good idea to test your emails across multiple platforms to ensure they look the way you intend them to.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-27 11:00:00 +0000

Seen: 10 times

Last updated: Feb 22 '22