Forums
This topic is locked
Dreamweaver templates & CSS
Posted 18 Feb 2007 20:41:56
1
has voted
18 Feb 2007 20:41:56 frankie polito posted:
I am new to css & dreamweaver. Anyway, I managed to set up my page layout using CSS and it is working. Next I wanted to take that CSS and turn it into a template in dreamweaver. My rational here was to have 2-3 main templates for the site. So I created a template based on my CSS design then created an html page based on that template to test on the server (just because I've learned things tend to change once they hit the actual server). Which is exactly what happened. The template would not link to the style sheet & one of my images. The problem is that in the dreamweaver preview a forward slash in inserted before the code for the stylesheet link
<link href="../ccstyles.css" (and this works for the priview)
but in order for it to work on the server I need to remove the / before the css
<link href="..ccstyles.css"
Would anyone know why this is happening and how I can correct it? Or is this a common problem that I should anticipate going forward?
Any advice would be appreciated.
Best,
Frankie
Replies
Replied 21 Feb 2007 04:30:21
21 Feb 2007 04:30:21 Javier Castro replied:
Try this:
<link href="foldername/ccstyles.css"
or
<link href="www.yoursite.com/foldername/ccstyles.css"
<link href="foldername/ccstyles.css"
or
<link href="www.yoursite.com/foldername/ccstyles.css"