/    Sign up×
Community /Pin to ProfileBookmark

HTML & CSS not communicating

I will learn from asking this.

Can anyone tell my why my page stops reading its stylesheet when I move it to a different directory?

[url]http://www.parpacy.com/psephy0001.html[/url]

I want it to live in a new directory:

[url]http://www.parpacy.com/psephy/psephy0001.html[/url]

…but when I try that, it looses the stylesheet.

Any help is appreciated, and thanks – in advance!

Also, I intend to make a directory which feeds a different YouTube object on a regular basis through the same template (psephyxxxx.html). I know there must be a less sloppy way to do this with .php than to fill a directory with .html documents (psephyxxx1.html….phephyxxx2.html…). Can anyone point me in the right direction?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@CentauriFeb 24.2008 — [CODE]<link rel="stylesheet" type="text/css" href="css/psephystyle.css" />[/CODE]This will only work if the css folder is a child of the folder where the html file is. When the folders are parallel paths, you need to "back up" one folder in the relative link using "../" :[CODE]<link rel="stylesheet" type="text/css" href="../css/psephystyle.css">[/CODE]
Note also that the trailing " /" before the closing tag is only applicable to xhtml, and is an error in html (which the browser will assume the page is as there is no doctype - something that also should be addressed)
Copy linkTweet thisAlerts:
@Push_LatencyauthorFeb 24.2008 — Thank you - I thought the directory needed to be changed somewhere.
×

Success!

Help @Push_Latency spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...