Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2002
    Location
    North Dakota
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy 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
    New Coder
    Join Date
    Jun 2002
    Location
    Paris, France
    Posts
    47
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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!

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,032
    Thanks
    0
    Thanked 248 Times in 245 Posts
    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

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    paris, france
    Posts
    1,216
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i dont think so but try both
    photoshop too expensive? use the GIMP! www.gimp.org


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •