Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 312
  • Last Modified:

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?
1 Solution
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">

<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

overcolorAuthor Commented:

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now