I've got a small app with a directory structure something like the following:
/ /catalog /css /maint /products /orders /images /includes Within /includes I have common header and footer files, with the header containing (simplified): <html> <head> <title>Application_Name</title> </head> <body bgcolor="white" text="black"> and this is just included in the template using <cfinclude template="include/header.cfm"> or <cfinclude template="../include/header.cfm"> or <cfinclude template="../../include/header.cfm"> depending on where in the directory tree the template resides. I want to place a relative reference in this header to a style sheet contained in the /css directory. <html> <head> <title>Application Name</title> <link rel="stylesheet" type="text/css" href="css/main.css"> </head> <body bgcolor="white" text="black"> How do I construct the href in the <link> tag to work independently of where the template is within the directory tree? I want to be able to take this whole app and to be able to place it anwhere in an existing web directory tree without modification, so I can't use absolute referencing to the style sheet, unless the link were dynamically generated by CF. Thanks, Jim ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4