Re: Fw: Beginner Stylesheet Question

by Gerhard Schoening <g.sch(at)onlinehome.de>

 Date:  Sat, 22 Dec 2001 10:41:23 +0100
 To:  "Anthony Abby" <anthonyabby(at)yahoo.com>
 Cc:  hwg-style(at)hwg.org
 References:  cx2066395a
  todo: View Thread, Original
Hi Anthony,

On Saturday, December 22, 2001 at 04:43 you wrote:


Anthony> ----- Original Message -----
Anthony> From: "Anthony Abby" <anthonyabby(at)yahoo.com>
Anthony> To: <hwg-style(at)hwg.org>
Anthony> Sent: Friday, December 21, 2001 10:22 PM
Anthony> Subject: Beginner Stylesheet Question


>> I'm taking my first foray into Stylesheets and I ran into a problem that
Anthony> I'm
>> hoping someone here can explain to me.
>>
>> I created a simple stylesheet, which I want to link to from my pages.  If
Anthony> I
>> LINK to the stylesheet ( <Link Rel="stylesheet" href="style.css"
>> Type="text/css">) none of the properties are applied to the elements on my
>> test page.  If I copy the Stylesheet and paste it in the head of that same
>> page, however, it works properly.  What am I doing wrong??
>>
>> Thanks for any help
>>
>> Anthony
>>
>> ----------------
>> <head>
>> <title><cfoutput>#Session.CommandName#</cfoutput> ADP Trouble Call
>> Interface</title>
>>
>>  <Link Rel="stylesheet" href="style.css" Type="text/css">
>> </head>
>> <body>
>>
>> ------
>> <STYLE TYPE="text/css">
>> BODY {
>>  background : blue;
>>  font-family : Arial, Helvetica, sans-serif;
>>  font-size : medium;
>>  font-size-adjust : none;
>>  font-stretch : normal;
>>  font-style : normal;
>>  font-variant : normal;
>>  font-weight : normal;
>>  float : left;
>>  empty-cells : show;
>>  color : Black;
>> }
>> TABLE {
>>  background-color : #8CB4F6;
>>  border : medium Blue;
>>  empty-cells : show;
>> }
>>
>> TH {
>>  background-color : Blue;
>>  color : Black;
>>  font-weight : bold;
>> }
>> </STYLE>
>>
>>
>>



Anthony> _________________________________________________________
Anthony> Do You Yahoo!?
Anthony> Get your free (at)yahoo.com address at http://mail.yahoo.com

Works perfect for me, both ways... think that means your pages can't
FIND the style.css file:

a) put style.css into the SAME directory that contains the page(s) -
makes sense only if all pages are in the same directory.

 OR

b) add the file's PATH to the reference:

<link rel="stylesheet" href="[path/to/]style.css" type="text/css"> -
be careful... must point to the correct place of your file!

 OR

c) convert to a URL: "http://somehost/[path/to/]style.css" - this is
always safe but consumes an additional browser connection and
increases load time.


Best regards,


Gerhard

g.sch(at)onlinehome.de
www.gerhard.purespace.de



---------------------------
Sch�ning OnLine

Gerhard Sch�ning, Freelancer
Bilingual Web Services
Web Design and Programming

http://www.schoening-online.com
gerhard(at)schoening-online.com

HWG hwg-style mailing list archives, maintained by Webmasters @ IWA