Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Inlining linked CSS files

$
0
0
Re: Inlining linked CSS files
HTML, CSS, JavaScript, Flash
Re: Inlining linked CSS files
03/16/2012
01:26:27 PM
3GG0ST7TG Show this entire thread in new window
Gratar Image based on email address
From:
To:
Attachments:
None
Hi Macer,

Sure just use:

<style> <%= FileToStr( Process.ResolvePath("~/css/westwind.css)) %> </style>

Actually that just gave me a great idea myself :-) I have the same issue here on hte message board when sending emails. Since emails don't allow linked external stylesheets but do tend to allow embedded styles the same above might work, but using:

<%= loHttp.HttpGet("http://west-wind.com/wconnect/westwind.css") %>

+++ Rick ---

Hi,

Is there an easy way to inline styles that have linked in external css files.

We have a scenario that requires the styles that are defined in an linked css file to be imbedded into the html. It would be nice to optionally output html with the styles embedded for this. Any easy way?

Regards

Mace



Rick Strahl
West Wind Technologies

Making waves on the Web

from Maui, Hawaii

Viewing all articles
Browse latest Browse all 10393

Trending Articles