Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28
  1. #21
    Join Date
    Aug 2006
    Posts
    35
    Plugin Contributions
    0

    Default Re: adding a background image

    Glenn I have been battling the images today, I am trying to use the smart Background contrubition and have probally made a mess of it. I have my images loaded but can not make the work can you please took at the link and let know what I might do to correct my issue? My home page image and the 1st catagory display a image, but the 1st page image is not the correct one and the other catagorys 2 & 3 display noyhing. http://loftinspwc.com/

  2. #22
    Join Date
    Aug 2006
    Posts
    35
    Plugin Contributions
    0

    Default Re: adding a background image

    Here my stylesheet where I added the image info.
    #logoWrapper{

    background-image: url(../images/smartbg.jpg);

    background-repeat: repeat-x;

    background-color: #ffffff;

    height:300px;

    }

    #logoWrapper_19 {
    background-image: url(../images/smartbg_19.jpg);
    background-repeat: repeat-x;
    background-color: #ffffff;
    height:300px;
    }
    #logoWrapper_5 {
    background-image: url(../images/smartbg_5.jpg);
    background-repeat: repeat-x;
    background-color: #ffffff;
    height:300px;
    }
    #logoWrapper_13 {
    background-image: url(../images/header_3.jpg);
    background-repeat: repeat-x;
    background-color: #ffffff;
    height:300px;
    }

  3. #23
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: adding a background image

    (Replied to pm.)

    In short, you need something like
    Code:
    .smartBG_19 #logoWrapper {
        background-image: url(../images/smartbg_19.gif);
        ...
        }
    .smartBG_5 #logoWrapper {
        background-image: url(../images/smartbg_5.gif);
        ...
        }  
    .smartBG_13 #logoWrapper {
        background-image: url(../images/smartbg_13.gif);
        ...
        }
    assuming 19, 5 and 13 are the category ids.

    P.S. - I forgot to mention in the pm that header_5.jpg won't work. You need to name it smartbg_##, and the code is written to use gifs, not jpgs. You can change the .gif references to .jpg if you want, but then they must all be jpgs.
    Last edited by gjh42; 27 May 2008 at 07:40 AM.

  4. #24
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    97
    Plugin Contributions
    0

    Default Re: adding a background image

    AHHHHHH I love you!!!!!
    Thank you SO MUCH!!!!
    I have been fighting with this for 3 days and was about to quit until I found this thread. I can't believe it was so simple and I missed it grrr.
    Anyways - thanks SO MUCH!!!!


    Quote Originally Posted by gjh42 View Post
    This is the image you want in the background, right?
    Code:
    body {
        margin: 0;
        font-family: verdana, arial, helvetica, sans-serif;
        font-size: 25%;
        color: #000000;
        background-color: #e5edf5;
            background-image: url(/domain/cart.bnbsoccer.com/html/includes/templates/custombnb/images/bikini.gif);
        }
    The best way to specify background images in your stylesheet is like this:

    url(../images/bikini.gif)
    Code:
    body {
        margin: 0;
        font-family: verdana, arial, helvetica, sans-serif;
        font-size: 25%;
        color: #000000;
        background-color: #e5edf5;
            background-image: url(../images/bikini.gif);
        }

  5. #25
    Join Date
    Jun 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: adding a background image

    read all the posts stil haveissues with the background not showing here is what i have

    E:/inetpub/vhosts/tale4resources.com/httpdocs/includes/templates/t4r/css/stylesheet.css

    E:/inetpub/vhosts/tale4resources.com/httpdocs/includes/templates/t4r/images/background.jpg

    body {
    margin: 0;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 62.5%;
    color: #000000;
    background-color: #e5edf5;
    background-image: url(..images/background.jpg);
    background-repeat: repeat
    }

    what seems to be the problem?

  6. #26
    Join Date
    Jun 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: adding a background image

    says i can edit my posts but there is no button to, anyway there is a ; after repeat;

  7. #27
    Join Date
    Jun 2008
    Posts
    11
    Plugin Contributions
    0

    Default Re: adding a background image

    nevermind, i got it thank you, had to add bakground-color transparent into the body tags

  8. #28
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: adding a background image

    background-image: url(..images/background.jpg);

    is not exactly the correct format for urls. It should be

    background-image: url(../images/background.jpg);

    The background-color of an element does not need to be transparent for its own background-image to show.

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Adding background image
    By robbin21973 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 4 Jan 2011, 06:20 AM
  2. Adding tiled background image
    By Chestnut Junction in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Aug 2009, 02:16 PM
  3. Adding a background image
    By Jen Will in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 30 Jan 2008, 03:14 PM
  4. Adding a background image in Layout Boxes
    By v.kirk in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Jan 2007, 04:06 AM
  5. .rightBoxHeading - adding a background image
    By bobblebob in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Oct 2006, 02:24 PM

Posting Permissions

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