Web Hosting, Design, & Coding forum

General discussion

CSS wont follow other pages

by j_InOvations / January 1, 2005 7:41 AM 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
You are posting a reply to: CSS wont follow other pages
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: CSS wont follow other pages
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
CSS wont follow other pages
by JerryS / January 13, 2005 1:30 AM 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
by johnhighway-20437154072583586110149507896481 / February 11, 2005 8:02 AM PST

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.

Popular Forums
icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

CNET FORUMS TOP DISCUSSION

Help, my PC with Windows 10 won't shut down properly

Since upgrading to Windows 10 my computer won't shut down properly. I use the menu button shutdown and the screen goes blank, but the system does not fully shut down. The only way to get it to shut down is to hold the physical power button down till it shuts down. Any suggestions?