This content has been marked as final. Show 5 replies
It's not quite clear to me what the problem is. From what I can guess, you could solve the problem by adding code to choose the style in Application.cfm or Application.cfc, thus
Thanks very much for your response.
The problem is, my CF code (similar to that which you have set out below) executes when I pregenerate my page. So, if I were pregenerating the pages using (say) IE7, the line of code "<LINK href="ie7_style.css" rel="stylesheet" type="text/css">" would be inserted into the page, which would then be live on the website. If a person comes along and views the page using Firefox, Opera, IE6 or any other broswer, the IE7 css will be used, because the line <LINK href="ie7_style.css" rel="stylesheet" type="text/css"> is already in the template.
What I want to do is insert the code (such as yours below) into the template that server executes when the Firefox (or other) user comes to the site.
Does this assist?
You are simply going to have to modify your pre-generation process so
that it does not generate this part of your template. Leaving it
dynamic to be generated at run time.
Since none of us has any idea how your pre=generation works or how you
want it to work, it would be very hard to give much more specific advice.
You could proceed as follows:
If the design based on CSS, there would be a solution also in CSS level.
Such as ...
<link rel="stylesheet" href="styles.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" href="ie7.css" />