I have built a couple of webpages that look fine when uploaded online with the style sheet included.
However I have a batch email program that imports an html file and sends the webpage as the body of the email to the clients.
Unfortunately much of the emailed webpage has missing image backgrounds in tables, borders and wrong text spacing etc, which I suspect is because the style sheet is not being read.
Do I actually have to save the html webpage with a style sheet for it to display correctly - or could I simply not include a style sheet and have the webpage alone always display correctly, both online and in the body of an email message?
Any help would be appreciated.
Martin.
Do I need a Style Sheet?
Re: Do I need a Style Sheet?
Most email applications only support a small subset of HTML, so many advanced features will not work in emails.
For example, images in emails are usually loaded from an external server.
Also, I do not think that external style sheets are supported.
For example, images in emails are usually loaded from an external server.
Also, I do not think that external style sheets are supported.
- protectourlands
-
- Posts: 426
- Joined: Sat May 24, 2008 2:16 am
- Contact:
Re: Do I need a Style Sheet?
You can publish your web pages without a style sheet and instead place the styles inline. Tools > Options > HTML > CSS, then uncheck any style sheet option. As Pablo says, your images should be linked to instead of being directly embedded. You will have to modify the code for this after the images are placed on your server.