The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.
|
 |
|
Dev Shed Forums
> Web Design
> HTML Programming
|
HTML EMAIL: Background Images
Discuss HTML EMAIL: Background Images in the HTML Programming forum on Dev Shed. HTML EMAIL: Background Images HTML Programming forum covering discussions of HTML and XHTML, as well as HTML-related issues such as writing W3C Compliant code. Use HyperText Markup Language for building websites.
|
|
 |
|
|
|
|

Dev Shed Forums Sponsor:
|
|
|

March 5th, 2012, 01:05 AM
|
|
Registered User
|
|
Join Date: Jan 2012
Posts: 11
Time spent in forums: 4 h 25 m 43 sec
Reputation Power: 0
|
|
|
HTML EMAIL: Background Images
Hi All,
I want to use a background image and have to write text over it. But such type of email is not supported by Outlook. Please suggest me with a very good solution.
Thanks & Regards,
Pooja
|

March 5th, 2012, 09:20 AM
|
 |
The Queen of Typos
|
|
Join Date: Sep 2004
Location: San Clemente
|
|
|
Make the image with your text ON the image and then write your text in the alt tag of the image. That's the only way that's going to work for you.
|

March 22nd, 2012, 11:55 PM
|
|
Registered User
|
|
Join Date: Jan 2012
Posts: 11
Time spent in forums: 4 h 25 m 43 sec
Reputation Power: 0
|
|
Quote: | Originally Posted by elkehinze Make the image with your text ON the image and then write your text in the alt tag of the image. That's the only way that's going to work for you. |
Hi elkehinze,
Can you please explain me again. I am very much depressed about this. Can you help me out in how to add a background image to an email body.
Thanks & Regards,
Pooja
|

May 3rd, 2012, 05:41 AM
|
|
|
|
@pooja
you can add background image in your outlook by click on header menu button of format and from there click on insert background image. Then add the image from its source area. Then type it as what you want to type on it. Thats it.
|

May 3rd, 2012, 06:54 AM
|
|
Registered User
|
|
Join Date: May 2012
Posts: 2
Time spent in forums: 51 m 53 sec
Reputation Power: 0
|
|
Process in brief.............!!
Quote: | I want to use a background image and have to write text over it. But such type of email is not supported by Outlook. |
http://www.campaignmonitor.com/blog/post/3363/updated-applying-a-background-image-to-html-email/
Quote: Applying a background image to the body of an HTML email
As outlined in our previous post, 'Add a background image to your email in two simple steps', this method uses a table of width="100%" to ensure that background images display in clients like Gmail. However, Brian Thies' updated approach varies in that it uses Microsoft VML to force images to display in Outlook '07 & '10. Here's the code in two steps. First, there's the Microsoft-specific HTML namespace declaration. Then there's the HTML in the body, a sample of which looks like this:
Code:
<body style="margin:0; padding:0; width:100% !important;">
<!--[if gte mso 9]>
<v:background fill="t">
<v:fill type="tile" src="YOUR IMAGE LOCATION URL" />
</v:background>
<![endif]-->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="center" background="YOUR IMAGE LOCATION URL">
<table width="600" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<p> If you can see this over the image, background images are successful. </p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
----------------------------------------------------------
For a repeating background image in a table cell:
1. Use the Microsoft HTML namespace declaration featured earlier in this post
2. Adapt the following VML code sample:
Code:
<table width="600" cellpadding="0" cellspacing="0" border="0">
<tr>
<!-- Backup background color is #DDDDDD -->
<td bgcolor="#DDDDDD" style="background-image: url('YOUR IMAGE LOCATION URL');" background="YOUR IMAGE LOCATION URL" width="600" height="120" valign="top">
<!--[if gte mso 9]>
<v:rect style="width:600px;height:120px;" strokecolor="none">
<v:fill type="tile" color="#DDDDDD" src="YOUR IMAGE LOCATION URL" /></v:fill>
</v:rect>
<v:shape id="theText" style="position:absolute;width:600px;height:120px;">
<![endif]-->
<p>If you can see this over the image, background images are successful.</p>
<!--[if gte mso 9]>
</v:shape>
<![endif]--></td>
</tr>
</table>
|
Last edited by Kravvitz : May 3rd, 2012 at 08:54 AM.
Reason: added [code] tags and the URL to the source of the article
|

May 3rd, 2012, 09:52 PM
|
|
Registered User
|
|
Join Date: Mar 2012
Posts: 8
Time spent in forums: 2 h 53 m 38 sec
Reputation Power: 0
|
|
|
This will help me also in making my website an HTML background. wherein I can put the text over the image. I will try your reply codes and wish it would run. Thanks anyway.
|

May 22nd, 2012, 11:12 PM
|
|
Permanently Banned
|
|
Join Date: May 2012
Posts: 2
Time spent in forums: 50 m 48 sec
Reputation Power: 0
|
|
|
Html
hi
HTML is the language in which web pages are written to be interpreted by the server as a graphic interface. Javascipt is similar, but is actually a web-adapted version of actual programming code, intended to write applets (small, web-based applications) for use on websites. They are both a type of code, but html is NOT a programming code. The HTML defines what the webpage looks like, the javascript handles things like counters, games, etc. Other web-based scripting languages, such as php and asp can be used to create entire webpages, but, like Javascript, are generally confined to handling what goes beyond the cosmetics of a website. The cosmetics are what HTML is for.
|

May 22nd, 2012, 11:27 PM
|
 |
CSS & JS/DOM Adept
|
|
Join Date: Jul 2004
Location: USA
|
|
Quote: | Originally Posted by keth HTML is the language in which web pages are written to be interpreted by the server as a graphic interface. |
The server doesn't interpret HTML. That's what the web browser (or other user-agent) does.
Quote: | Originally Posted by keth Other web-based scripting languages, such as php and asp can be used to create entire webpages |
Yes, they generate content which is typically marked up with HTML.
Quote: | Originally Posted by keth The cosmetics are what HTML is for. |
No, cosmetics are what CSS is for.
|
Developer Shed Advertisers and Affiliates
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|