You can reference CSS files from themes. You'll just need to include the
relative path to the theme (example: /app_themes/theme1/style.css).
You can add your <style> information to the page header at runtime in the
Page_Load event. Here's an example in C#:
protected void Page_Load(object sender, EventArgs e)
{
HtmlGenericControl style = new HtmlGenericControl("style");
style.Attributes.Add("type", "text/css");
style.Attributes.Add("media", "Screen");
style.InnerText = "@import url(/master.css);";
Page.Header.Controls.Add(style);
}
Jason
"shapper" wrote:
> Hello,
>
> I would like to use something as follows in my web site:
>
> Master.css
> @import url("reset.css");
> @import url("global.css");
> @import url("flash.css");
> @import url("structure.css");
>
> MyPage.Aspx
> <style type="text/css" media="Screen">
> /*\*/@import url("master.css");/**/
> </style>
>
> Can I do this using App_Themes, i.e., placing my CSS files in
> App_Themes?
>
> And how can I add
>
> <style type="text/css" media="Screen">
> /*\*/@import url("master.css");/**/
> </style>
>
> To my Page.Aspx head tag at runtime, and in which event should I do
> this?
>
> Thanks,
>
> Miguel
>
|