Re: Trying to learn CSS

by Brian V Bonini <b-bonini(at)cox.net>

 Date:  08 Jul 2003 11:25:14 -0400
 To:  "Wanda J. Hall" <wanda(at)wandaweb.com>
 Cc:  HWG Techniques <hwg-techniques(at)hwg.org>
 References:  wandaweb
  todo: View Thread, Original
On Tue, 2003-07-08 at 10:51, Wanda J. Hall wrote:
> I'm attempting to create an external style sheet... I don't seem to be
> getting very far.  I began with just a few elements to see if I was doing it
> right, but it shows up as a regular white page, with the two lines at the
> top, one below the other as normal paragraphs.  Perhaps someone can set me
> straight before I get too far.  What I'm going for is a black background
> that is filled with a background image.  Two paragraphs that start at 350px
> from the top, the left side paragraph offset from the left with black text
> and another paragraph to the right of it with white text.  This is what I
> have in the .css file:
> 
> background
> {
> background-color: #000000
> background-image: url("bgimage.gif")
> background-attachment: fixed
> background-position: 0% 0%
> background-repeat: repeat
> }
> 

background is not an element, try:

html, body {
  background-color: #000000
  background-image: url("bgimage.gif")
  background-attachment: fixed
  background-position: 0% 0%
  background-repeat: repeat
}

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