Freepages-Help-L Archives

Archiver > Freepages-Help > 2006-04 > 1143895509


From: Pat Geary <>
Subject: Re: [FreeHelp] lost css
Date: Sat, 01 Apr 2006 07:45:09 -0500
References: <442E72A3.1010302@prob.freeserve.co.uk>
In-Reply-To: <442E72A3.1010302@prob.freeserve.co.uk>


At 07:31 AM 4/1/2006, Rosemary Probert wrote:

>The css page validates using W3C
>http://freepages.genealogy.rootsweb.com/~rprobert/new-site/familypage.css
>
>the front page also validates using W3C
>http://freepages.genealogy.rootsweb.com/~rprobert/new-site/index.htm
>
>as does one of the family pages (only checked one so far)
>http://freepages.genealogy.rootsweb.com/~rprobert/new-site/probert/george-probert-and-jane-ann-mennell.htm
>
>But it has lost all the style from the css file - and so have the
>other family pages!

===============snip==================

Your link for the style sheet is

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


which indicates it is located in the same directory as the page it is
linked to BUT the page is actually located one directory down

>http://freepages.genealogy.rootsweb.com/~rprobert/new-site/probert/george-probert-and-jane-ann-mennell.htm


so the style sheet needs to include ../

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

which tells the browser to go up one level. Depending on how many
levels down the page is located, you will need to adjust the link.

pat


____________
Pat Geary
http://www.family-genealogy-online.com/
http://www.family-genealogy-online.com/building-webpages.htm
http://www.blog.family-genealogy-online.com/


This thread: