[thelist] Styling Applications embedded in templates

Frank lists at frankmarion.com
Tue Feb 10 11:14:23 CST 2004

At 12:35 PM 2004-02-09, you wrote:
>My question goes to how to best include styling directives for these 
>applications. Each application may require unique styling, therefore it is 
>not advisable to assume that an application global stylesheet can be 
>inserted into the containing template's HEAD section. Although this would 
>possibly be the most optimal solution.

This in part, I imagine depends on the language you are using.

I have the same set of circumstances, multiple fuses (apps). I tend to 
create a style sheet for each app, and use unique identifiers <table 
id="contact-form">, <table id="contact-feedback">, <form 
id="store-shoppingcart">. This enables you to create a global style sheet 
if that's what you wish.

I also write links to the style sheets out based on the URI. If 
cgi.script_name contains "/store" I'll include the store's style sheet, 
same with "/contact" and so on.

If you are using Coldfusion, there's a tag: cfhtmlhead. This will place the 
content of the tag between the <head></head> tags, just before the closing tag.

Hope this helps.

Frank Marion     lists at frankmarion.com      Keep the signal high.  

More information about the thelist mailing list