Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Stylesheet linking question

Reply
Thread Tools

Stylesheet linking question

 
 
Dylan Parry
Guest
Posts: n/a
 
      11-15-2004
Davmagic .Com wrote:

> This I am not familiar with... putting "two dots" before the forward
> slash... is this explained anywhere?


I've briefly touched upon this and others in
http://webpageworkshop.co.uk/main/html_links

--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
 
Reply With Quote
 
 
 
 
Dylan Parry
Guest
Posts: n/a
 
      11-15-2004
Davmagic .Com wrote:

> How can I change the href path so that I need to place the stylesheet
> into only my root directory?


<link rel="stylesheet" href="/style1.css" type="text/css">
^
--
Dylan Parry
http://webpageworkshop.co.uk -- FREE Web tutorials and references
 
Reply With Quote
 
 
 
 
Davmagic .Com
Guest
Posts: n/a
 
      11-15-2004
Right now I link to my stylesheet with this code on all my pages:

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

I have several directories, and using the above code requires that I
place the stylesheet into each directory...

How can I change the href path so that I need to place the stylesheet
into only my root directory?

Web Design, Magic, Painting, Junking, More
http://www.davmagic.com/
Paint A House
http://www.paintahouse.com/
NOTE: This emailbox is CLOSED do NOT reply!!!

 
Reply With Quote
 
Steve Pugh
Guest
Posts: n/a
 
      11-15-2004
On Mon, 15 Nov 2004 11:56:49 -0500, (Davmagic .Com)
wrote:

>Right now I link to my stylesheet with this code on all my pages:
>
><link rel="stylesheet" href="style1.css" type="text/css">
>
>I have several directories, and using the above code requires that I
>place the stylesheet into each directory...
>
>How can I change the href path so that I need to place the stylesheet
>into only my root directory?


The same way you would for any other link.

href="../style1.css" to refer to a stylesheet one level higher up,
etc.
Or href="/style1.css" to refer to a stylesheet in the site root.

Steve

 
Reply With Quote
 
Davmagic .Com
Guest
Posts: n/a
 
      11-15-2004

>From: (Steve*Pugh)
>The same way you would for any other
>link.
>href="../style1.css" to refer to a stylesheet
>one level higher up,
>etc.


This I am not familiar with... putting "two dots" before the forward
slash... is this explained anywhere?

>Or href="/style1.css" to refer to a
>stylesheet in the site root.


This is what I figured to be the way to reference the root directory,
and I have now made all the changes to my pages, to reflect this path...

Thanks....

Web Design, Magic, Painting, Junking, More
http://www.davmagic.com/
Paint A House
http://www.paintahouse.com/
NOTE: This emailbox is CLOSED do NOT reply!!!

 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      11-15-2004
Davmagic .Com wrote:

> This I am not familiar with... putting "two dots" before the forward
> slash... is this explained anywhere?


It means the same as it does in Windows, and DOS, and UNIX, and most other
OS out there.

http://www.iusmentis.com/technology/www/relativeurls/

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Davmagic .Com
Guest
Posts: n/a
 
      11-15-2004

>From:
>(David*Dorward)
>It means the same as it does in Windows,
>and DOS, and UNIX, and most other OS
>out there.
>http://www.iusmentis.com/technology/www/relativeurls/


Thanks for that link, that clears it up for me...

Web Design, Magic, Painting, Junking, More
http://www.davmagic.com/
Paint A House
http://www.paintahouse.com/
NOTE: This emailbox is CLOSED do NOT reply!!!

 
Reply With Quote
 
 
 
Reply

Thread Tools

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
Firefox and XSLT (local stylesheet works, server-based stylesheet fails) David Blickstein XML 14 10-15-2005 11:27 PM
Linking to a stylesheet multiple times Nathan Sokalski ASP .Net 7 09-14-2005 12:28 PM
xml:stylesheet use in document with multiple stylesheet options David Blickstein XML 3 08-02-2005 03:10 PM
have a stylesheet generate another stylesheet based on XML? Steven An XML 1 11-23-2004 01:07 PM
Stylesheet referanse i stylesheet =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?= XML 3 07-04-2004 03:16 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57