PC Review


Reply
Thread Tools Rate Thread

CSS being linked to local (hard) drive

 
 
Sitara Lal
Guest
Posts: n/a
 
      12th Jun 2004
When I try linking an empty page to a style sheet (using Format | Style
Sheet Links | Add) which is on the root drive of my web folder, I find that
the link invariably points to my local disk [<link rel="stylesheet"
type="text/css"
href="file:///C:/Documents%20and%20Settings/My%20Documents/My%20Webs/WTC.css
">] rather to the generic web directory.

What causes this and how can I prevent this?

This feature worked fine until earlier this week!

Thanks for your help

SL


 
Reply With Quote
 
 
 
 
Andrew Murray
Guest
Posts: n/a
 
      12th Jun 2004
use a relative link like

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

(as an example only).


"Sitara Lal" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When I try linking an empty page to a style sheet (using Format | Style
> Sheet Links | Add) which is on the root drive of my web folder, I find that
> the link invariably points to my local disk [<link rel="stylesheet"
> type="text/css"
> href="file:///C:/Documents%20and%20Settings/My%20Documents/My%20Webs/WTC.css
> ">] rather to the generic web directory.
>
> What causes this and how can I prevent this?
>
> This feature worked fine until earlier this week!
>
> Thanks for your help
>
> SL
>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      12th Jun 2004
Make sure that you have first opened a web using File Menu | Open Web / Site.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Sitara Lal" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> When I try linking an empty page to a style sheet (using Format | Style
> Sheet Links | Add) which is on the root drive of my web folder, I find that
> the link invariably points to my local disk [<link rel="stylesheet"
> type="text/css"
> href="file:///C:/Documents%20and%20Settings/My%20Documents/My%20Webs/WTC.css
> ">] rather to the generic web directory.
>
> What causes this and how can I prevent this?
>
> This feature worked fine until earlier this week!
>
> Thanks for your help
>
> SL
>
>



 
Reply With Quote
 
Sitara Lal
Guest
Posts: n/a
 
      12th Jun 2004
Andrew,

Are you suggesting that I should edit the HTML generated by FP2002 (or hand
code the reference to the style sheet)?

If yes, while I can no doubt do that to make the page work, I would still
like to know why does not FP automatically generate a relative link instead
of creating an absolute link to my local drive?

Thanks

SL



"Andrew Murray" <(E-Mail Removed)> wrote in message
news:40ca9af4$0$24178$(E-Mail Removed)...
> use a relative link like
>
> <link rel="stylesheet" type="text/css" href="../styles/wtc.css">
>



 
Reply With Quote
 
Ronx
Guest
Posts: n/a
 
      12th Jun 2004
....and also that the page has been saved. FrontPage will *always* use
absolute links on a page that has never been saved. When saved, the links
are converted to relative links (provided the page is in an open web).
--
Ron
Reply only to group - emails will be deleted unread.

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message
news:eQ0X$(E-Mail Removed)...
> Make sure that you have first opened a web using File Menu | Open Web /

Site.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Sitara Lal" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > When I try linking an empty page to a style sheet (using Format | Style
> > Sheet Links | Add) which is on the root drive of my web folder, I find

that
> > the link invariably points to my local disk [<link rel="stylesheet"
> > type="text/css"
> >

href="file:///C:/Documents%20and%20Settings/My%20Documents/My%20Webs/WTC.cs
s
> > ">] rather to the generic web directory.
> >
> > What causes this and how can I prevent this?
> >
> > This feature worked fine until earlier this week!
> >
> > Thanks for your help
> >
> > SL
> >
> >

>
>



 
Reply With Quote
 
Sitara Lal
Guest
Posts: n/a
 
      12th Jun 2004
Thomas and Ron,

Thanks for your replies to this vexing problem. Does your answer mean that
if I were to create a new page using a page template (which had a style
sheet link as well as an included component linking to another page), then
the new page would be created with absolute links instead of the desired
relative links?

That is exactly what happens when I use a template, which was created
essentially to avoid the repetetive task of identically formatting multiple
pages.

SL


 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      12th Jun 2004
The problem with using a template, is that it is not stored within your current open web and will
always create absolute URLs.

The best option is the create a page, then do not save as a "template" but save under the name
template.htm within the current open web, then when you need to use it, open it and then do Save As
to the name for the new page you want to create.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Sitara Lal" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thomas and Ron,
>
> Thanks for your replies to this vexing problem. Does your answer mean that
> if I were to create a new page using a page template (which had a style
> sheet link as well as an included component linking to another page), then
> the new page would be created with absolute links instead of the desired
> relative links?
>
> That is exactly what happens when I use a template, which was created
> essentially to avoid the repetetive task of identically formatting multiple
> pages.
>
> SL
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
missing hard drive C (local drive) icon scr621 Windows Vista General Discussion 4 5th Jan 2008 01:07 PM
Set Local Site to Local Hard Drive =?Utf-8?B?QWdlbnQgRm94?= Microsoft Frontpage 3 22nd Jul 2006 09:17 AM
Local hard drive was Drive F: problem fixed, but paths are still a mess Richard L. Dery Windows XP Help 1 27th Sep 2004 01:10 AM
local hard drive snooop Windows XP Hardware 1 11th Nov 2003 03:05 PM
Replicating the local hard drive onto another hard drive. Rithick Bala Microsoft Windows 2000 1 23rd Aug 2003 03:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:04 AM.