dreamweaver dwt and editing css files

geoffdavis used Ask the Experts™
Hello Experts,

I purchased a website template for my boys football team. I'm using dreamweaver to edit the dwt and html files. Everything is working fine for the main site but I'm at the point where I need to add half a dozen styles in the css file. I added them into style.css, the file that came as part of the template, and to a new css file. Regardless where I add them, they do not show up in the dreamweaver properties page as an style I can select onto.

The css files are being loaded from the dwt file, which may be the problem.

Any assistance would be appreciated.


Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
The path in the template .dwt points to the css file being used. This is the css that you need to change if you want it to apply across the site.
Note that you probably want an absolute path to the CSS file rather than a relative path as the template could be used in various folders.



This is what I'm using now and the file is being found and loaded:
<link href="../style.css" rel="stylesheet" type="text/css" />

I tried this too?
<link href="style.css" rel="stylesheet" type="text/css" />
Try this assuming the css is in the root folder (i.e. no sub folders).
<link href="/style.css" rel="stylesheet" type="text/css" />
Thanks for the replies Number-1

This is the part where I have a conversation with myself. Do I present to the group that I'm an idiot or not? Hmm. What to do.

My style didn't have a dot in front of it. Now it does and now I can use them.



It was an error on my part.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial