Background does not show in Thunderbird

400 views
Skip to first unread message

Boma

unread,
Apr 4, 2011, 3:15:15 PM4/4/11
to bluegriffon
I made a design with only a background.
When I feed the HTML source code to email client Thunderbird the
background is not shown.
What is the reason for this?

Also CDATA is inserted in the Style area.
Just below the code is shown. Next the code with <![CDATA[ and ]]>
removed.
Also after removal of CDATA the background is not shown in
Thunderbird.


Code with CDATA:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="content-type" content="text/html;
charset=UTF-8" />
<title></title>
<style type="text/css"><![CDATA[
#steentjes {
background-image: url("file:///C:/tmp/002pierres.jpg");
}
]]></style>
</head>
<body id="steentjes">


</body>
</html>


Code with CDATA removed

Boma

unread,
Apr 4, 2011, 3:17:11 PM4/4/11
to bluegriffon
I forgot to paste the second code:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="content-type" content="text/html;
charset=UTF-8" />
<title></title>
<style type="text/css">
#steentjes {
background-image: url("file:///C:/tmp/002pierres.jpg");
}
</style>
</head>
<body id="steentjes">


</body>
</html>


Brian

unread,
Apr 4, 2011, 7:41:33 PM4/4/11
to blueg...@googlegroups.com
I'm going to guess that it's the link to the image file that is the problem. How did you insert the image? I'd recommend placing it in the same directory structure as your final html file. Either in an /image folder or in the same folder.

-- 
Brian
Sent with Sparrow

Boma

unread,
Apr 5, 2011, 11:33:10 AM4/5/11
to bluegriffon
I have placed the background image and the HTML file in the same
directory. This also did not work.

I inserted the image with the Style Properties Colors menu (Images,+,
Add a background image).

alex bodnaru

unread,
Apr 5, 2011, 9:10:26 PM4/5/11
to blueg...@googlegroups.com
in thunderbird, files could be referenced by absolute url, or the file could be
attached to the mail message, and referenced using cid: something.

hth,
alex

Daniel Glazman

unread,
Apr 6, 2011, 1:51:09 AM4/6/11
to blueg...@googlegroups.com
Le 06/04/11 03:10, alex bodnaru a écrit :

> in thunderbird, files could be referenced by absolute url, or the file could be
> attached to the mail message, and referenced using cid: something.
>
> hth,
> alex

Right. A document coming from the internet should have the right to
look at file:// files; that's a deep security hole...

</Daniel>

Boma

unread,
Apr 6, 2011, 12:23:10 PM4/6/11
to bluegriffon
I can add the background image in Thunderbird via format menu (Page
Colors and Background).
But I would prefer to transfer the background from BlueGriffon to
Thunderbird. That's more elegant.
Also I do like the gradient background (Style Properties, Colors) made
with BlueGriffon.
These I can't make with Thunderbird.

Why are normal images transferred well to Thunderbird? Contrary to
body background images. What is the difference?

However I can transfer background images to Thunderbird. This is the
case with backgrounds of normal images (png).
The following code is an example:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta http-equiv="content-type" content="text/html;
charset=UTF-8" />
<title></title>
<style type="text/css">
#jappannertjes {
position: absolute;
background-image: url("file:///C:/tmp/back-368.gif");
}
</style>
</head>
<body>
<img src="file:///C:/tmp/dames.png" alt="dames"
id="jappannertjes" style="top: 208px; left: 297px;" />
</body>
</html>

Boma

unread,
Apr 11, 2011, 1:53:59 PM4/11/11
to bluegriffon
Why are background images defined by an url contrary to normal images?
Is this mandatory, or is there another way?
Reply all
Reply to author
Forward
0 new messages