Style Sheets in CF template

Posted on 2012-08-22
Last Modified: 2012-08-23
Im using a Style Sheet in my header.cfm file and calling on that file as a template on all my CF pages, but I can see the styles in dreamweaver on any of my page when Im trying to add/edit them. Where/how should I add the style sheet so it show on my pages?
Question by:overcolor
    LVL 15

    Accepted Solution

    you question is bit confusing, can you clarify what you are saying here

    do you mean this

    index.cfm file
    <cfinclude teplate="header.cfm">

    your header.cfm
    <link rel="stylesheet" href="style.css">

    <cfinclude template="header.cfm">

    if that is the structure, you header file contains the CSS and you view it when you browse the website to the server, it will execute the code inside the cfinclude tag and will show you the file on browser by which you can do the [view source] and can see your css

    if you are doing an edit/add of index.cfm or file2.cfm, you will bot be able to call the or see the CSS, only you will be able to the header.cfm and inside that file you will see the link, if you need to see the styles to, you need to explicitly call the css for add/edit code and then remove it from main file as your header file will already be having it


    Author Closing Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    PROBLEM:  How to open a cfwindow or run a function on double click of a cfgrid row. One of my clients wanted to be able to double click on a row item to get more detailed information about a transaction and to be able to modify the line items i…
    CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now