PDA

View Full Version : Tempates and CSS


ivy
04-14-2010, 12:51 PM
I have created a template which is in a templates folder created by DW. I want to style the menu and general look of the page, background etc by the css style sheet. But the template page is in the templates folder and does not see the style sheet (href="style.css")

So how is this usually done? Do i change the href in the template? What is the syntax for doing this?

DWcourse
04-14-2010, 01:03 PM
You need to use either document-relative or site-relative links (chosen when you define your site). So, assuming the style.css file is in your root folder the link will look like:

../style.css document-relative - go up one directory and find style.css.

/style.css site-relative - begin in the root folder and follow the directory structure (in this case there is none) to style.css.