Re: Fw: Beginner Stylesheet Question

by "Lisa Bradshaw" <zibbler(at)mediaone.net>

 Date:  Sat, 22 Dec 2001 08:21:16 -0500
 To:  <hwg-style(at)hwg.org>
 References:  cx2066395a
  todo: View Thread, Original
In an external style sheet you should NOT have the <.style> <./style> tags
in there. That is why it works when you embed it but not when you link to
it. The external style sheet should only have the style declarations in it.
Lose the tags and it should work.

Lisa

***********************************
Lisa Bradshaw ,  Web Designer

Crescendo Web Design - http://www.web-design-cs.com
webmaster(at)web-design-cs.com

***********************************
----- Original Message -----
From: "Anthony Abby" <anthonyabby(at)yahoo.com>
To: <hwg-style(at)hwg.org>
Sent: Saturday, December 22, 2001 7:20 AM
Subject: Fw: Fw: Beginner Stylesheet Question


> As a follow-up question, is there a particular way, or a best practice,
for
> setting the body background color when linking to a stylesheet file?  I'm
> linking to the following file (styles.css) and it supposed to set the body
> background color to Blue, however in IE 6 the body background color stays
> White unless I embed the stylesheet directly on the page.  Additionally,
> while linking to this file, it does not set the FONT, or font color
either.
> In fact, the only thing that does seem to work while linking to this file,
> is the background color in the TABLE.  Why would it do this??  I do not
have
> any settings in the HTML that would counteract the stylesheet, so I'm kind
> of scratching my head here.
>
> Thanks
> Anthony
>
> <STYLE TYPE="text/css">
> BODY {
>  background : #0000FF;
>  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 : Red;
> }
>
> TABLE {
>  background-color : #8CB4F6;
>  border : medium Blue;
>  empty-cells : show;
> }
>
> TH {
>  background-color : #0000FF;
>  color : Black;
>  font-weight : bold;
> }
> </STYLE>
>
>
>
>
> ----- Original Message -----
> From: "Anthony Abby" <anthonyabby(at)yahoo.com>
> To: <hwg-style(at)hwg.org>
> Sent: Saturday, December 22, 2001 7:01 AM
> Subject: Re: Fw: Beginner Stylesheet Question
>
>
> > Gerhard,
> >
> > My stylesheet was in the same directory actually, but now I'm almost
> > embarrassed.  The problem ended up being that the stylesheet file is
named
> > STYLES.CSS and I was calling STYLE.CSS.  Guess working on a project when
> > only getting four hours sleep the night before isn't really a good idea
:)
> >
> > Thanks for your help!
> > Anthony
>
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free (at)yahoo.com address at http://mail.yahoo.com
>
>

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