Skip to main content
December 4, 2012
Question

Upgraded to CF 10 Does not work with external stylesheet?

  • December 4, 2012
  • 1 reply
  • 670 views

Hi!

Many of my websites are using an external stylesheet such as this:

<link rel="stylesheet" type="text/css" href="test.css" title="This is a test" />

In my 2 laptops, 1 has CF8 and the other has CF10, I just downloaded a few minutes ago.

My Boss wanted me to compare because he is thinking of upgrading it to CF10.

After I'm done setting up everything (IIS, datasource, etc), I launched my website in both laptops and the result on laptop with CF10 is quite surprising.

When I took out:

<link rel="stylesheet" type="text/css" href="test.css" title="This is a test" /> from <head></head> and replace it with:

<style> css codes from test.css </style>  I got my style back.

So, for some reason, CF10 ignores <head><link rel="stylesheet" type="text/css" href="test.css" title="This is a test" /></head>

Does CF10 can't work with external stylesheet anymore? or is there setting in administrator if I want the old fashion way in using external setting?

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
December 7, 2012

That's odd indeed. However, it is unlikely to be a ColdFusion problem. Parsing and interpretating CSS is a matter for the browser. Does the <link> tag show up in the page source? Just for chuckles, what happens when you use <link rel="stylesheet" type="text/css" href="test.css" title="This is a test">, leaving out the end tag?