Style Sheets in CF template

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?
overcolorAsked:
Who is Participating?
 
Gurpreet Singh RandhawaWeb DeveloperCommented:
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">

file2.cfm
<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

Cheers
0
 
overcolorAuthor Commented:
Perfect
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.