StyleAide

Register your CSS so that it is rendered in the <head> of a document. Typically used in master pages.

// Register included css
StyleAide.CurrentContext.RegisterInclude("Screen", UrlAide.Resolve("~/_client/styles/screen.css"));

// Register css block
StyleAide.CurrentContext.RegisterBlock("ie", string.Format("<!--[if lte IE 7]><link href=\"{0}\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\" /><![endif]-->", UrlAide.Resolve("~/_client/styles/ie.css")), "screen", false);

Last edited May 27, 2007 at 7:26 PM by stebrennan, version 1

Comments

No comments yet.