Web Analytics Made Easy -
StatCounter Linking pages with CSS & Background Graphic - CodingForum

Announcement

Collapse
No announcement yet.

Linking pages with CSS & Background Graphic

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Linking pages with CSS & Background Graphic

    Hi: I have 3 pages that need to be linked to a style sheet. As far as I know, I can add a <Link> tag to the head section of each HTML file such as: <LINK HREF="MMMP.css" REL="stylesheet" TYPE="text/css"> Will this link correctly or am I missing code?

    Also, I am to add a new white background with a .jpeg graphic fixed (no scrolling) horizontally and vertically in the center of the display and the graphic cannot tile. My experience with HTML & web design is limited and I've spent a great deal of time on this so.....I inserted the following in the .css under Header 2:

    BODY {background:white url{(Review.jpg) no-repeat fixed center center}

    will this work

    Thanks for your speedy reply!!

  • #2
    BODY {
    background : White url(review.jpg) no-repeat fixed center;
    }

    You just dont need to put "center" twice. And you put an "{" in front of the url which is unecessary.

    The link code should link correctly since it's the same one I'm using.
    I don't suffer from insanity, I enjoy every single minute of it!

    Comment


    • #3
      try this, it is much clearer.

      BODY {
      background-attachment : fixed;
      background-color : White;
      background-image : url(picture.jpg);
      background-position : center;
      background-repeat : no-repeat;
      }

      this looks much clearer to me
      photoshop too expensive? use the GIMP! www.gimp.org

      Comment


      • #4
        does url have quotes?

        background-image : url("picture.jpg");


        Originally posted by whackaxe
        try this, it is much clearer.

        BODY {
        background-attachment : fixed;
        background-color : White;
        background-image : url(picture.jpg);
        background-position : center;
        background-repeat : no-repeat;
        }

        this looks much clearer to me
        Glenn
        vBulletin Mods That Rock!

        Comment


        • #5
          i dont think so but try both
          photoshop too expensive? use the GIMP! www.gimp.org

          Comment

          Working...
          X