Page 1 of 1

Do I need a Style Sheet?

Posted: Fri Apr 28, 2023 7:17 pm
by sartechnology
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.

Re: Do I need a Style Sheet?

Posted: Fri Apr 28, 2023 7:45 pm
by Pablo
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.

Re: Do I need a Style Sheet?

Posted: Mon May 01, 2023 4:32 pm
by protectourlands
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.