Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

CSS wont follow other pages

Jan 1, 2005 7:41AM PST

HELP!!
I'm real frustrated. I'm working in PC Dreamweaver MX on a multi page site. For some reason, I cannot get the .css file to attached to any other page than index.htm . What am I doing wrong??

ref: www.inovations-test/test4

Thanks,
Jeff

Discussion is locked

- Collapse -
CSS wont follow other pages
Jan 13, 2005 1:30AM PST

Did you check the path? If your other pages are in folders then you have tomodify the href by adding '../' for each level of folder. (Omit the quotes.)

- Collapse -
Website versus Webpage

If the webpage is sitting on some 'parent' root directory (e.g. /home/users/joeshmoe) and you can reference your webpage/website like http://joeshmoe.somewebsite.com, then you can generally put the style sheet at the root level with something like:

<link rel="stylesheet" type="text/css" href="/style.css" />

This will make it so that any webpage that they load while on your webpage will access the style sheet on the root directory. Leaving out the leading "/" will instruct the browser to access the "local" file in the directory that you're in. You can reference style sheets in parent directories with "../style.css" and the deeper the sub directories, the more "../../" you'll need to put in. Remember that "../" or "./" is relative to where the file is and "/" is relative from the root directory.