Z
Z
zayko2011-09-27 09:39:10
HTML
zayko, 2011-09-27 09:39:10

HTML mail layout. background picture

For the first time I'm coding an HTML letter. In parallel, I read articles from Habr.
They write that mail clients cut out the url attribute.

You need to place an image in the background of the header.

How to proceed?

I see an option:
Two blocks/tables with absolute positioning and z-index. Picture in the bottom block.

Will it work?

Perhaps other options?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Blah, 2011-09-27
@Blah

www.campaignmonitor.com/css/ is a very useful table.
www.campaignmonitor.com/blog/post/3170/adding-background-images-to-your-email-in-two-simple-steps/ - used to work, now probably too.

D
Dmitry Sidorov, 2011-09-27
@Doomsday_nxt

Try

<body background="URL">
...
</body>

A
Arthur Koch, 2012-02-15
@dudeonthehorse

Let it be late, but I will answer. Background images should be avoided. Insert graphics via img. Forget the position property. But from February 1 of this year, background pictures began to work in gmail, but they still do not work in ms outlook too

M
Mark B1, 2014-07-08
@MarkB1

Tell me, what are you typing the letter in? Instead of background images, it is better to use a fill with the insertion of graphic elements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question