.css in Coldfusion 6.1

Discussion in 'Programming' started by ragingmon, Oct 3, 2007.

  1. #1
    Hi all
    I came to this site with google, and maybe some can help me with this newbie problem..

    btw, I'm a newbie and learning a bit of CF.
    I had a problem on putting .css and .js files in CF..
    I made the css files like sample.css.cfm. This works in IE6 and IE7, but not in firefox.

    and also the images wont show in IE7 and Firefox using
    <img src="C:/CFusionMX/wwwroot/sample/sample.jpg" />
    Code (markup):
    Help me out with this pls. tnx in advance
     
    ragingmon, Oct 3, 2007 IP
  2. Jamie18

    Jamie18 Peon

    Messages:
    201
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i don't fully understand the question but in general you include the css files as

    <link href="stylesheet.css" rel="stylesheet" type="text/css">

    also, you can remove the .cfm file extension from the filename..

    to include a javascript file use

    <script type="text/javascript" src="script.js">

    the reason the stylesheet works in IE but not firefox is might be that you are using browser specific styles in your css. You might want to post your css in the css section of this forum, if there's anything wrong with it or anywhere to improve someone here will probably be able to help
     
    Jamie18, Oct 5, 2007 IP