Do I need a Style Sheet?

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
sartechnology
 
 
Posts: 2
Joined: Fri Mar 10, 2023 9:32 pm

Do I need a Style Sheet?

Post 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.
User avatar
Pablo
 
Posts: 22430
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Do I need a Style Sheet?

Post 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.
User avatar
protectourlands
 
 
Posts: 426
Joined: Sat May 24, 2008 2:16 am
Contact:

Re: Do I need a Style Sheet?

Post 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.
Post Reply