Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default CSS image not displaying

    I'm having problems with a new template i'm trying to create.
    I can't get background images to display that are called in the stylesheet.

    CSS is:

    #wrapper{

    background-image:url(../images/xmas_window_bg_top.jpg) left top no-repeat #f5f5f6;

    background-color:transparent;

    text-align:center;

    }

    Any suggestions why it doesn't display?

    Regards
    Steve

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

    Default Re: CSS image not displaying

    Where is xmas_window_bg_top.jpg located? Seeing your site live would make it easier for us to advise you.

  3. #3
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Re: CSS image not displaying

    the image file is located in includes/templates/xmas_shop/images.

    site is only on a local testing server at the moment so i can't show it live.

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

    Default Re: CSS image not displaying

    Are you sure the bg image is not displaying? "#wrapper" sounds like an element that will be filled with other elements, and if those have background colors, they will block the wrapper bg.

  5. #5
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Re: CSS image not displaying

    Definately not displaying.

    I removed the entire stylesheet apart from the section that calls the image and it still doesn't display.

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

    Default Re: CSS image not displaying

    Reading the rule you posted more closely, the problem is obvious: you are using the property declarations wrong.
    background-image: can only take a url for a value; all other values need to be in other background- properties, or else use the shorthand property background:

    #wrapper{
    background-image:url(../images/xmas_window_bg_top.jpg) left top no-repeat #f5f5f6;
    background-color:transparent;
    text-align:center;
    }
    #wrapper{
    background:url(../images/xmas_window_bg_top.jpg) left top no-repeat #f5f5f6;
    text-align:center;
    }

    If you want the bg transparent, remove the #f5f5f6 and it will default to transparent.

  7. #7
    Join Date
    Nov 2005
    Location
    France
    Posts
    600
    Plugin Contributions
    8

    Default Re: CSS image not displaying

    Thanks for the input on the CSS.

    Sadly, tried that and still no background image.

    I'm confused as to what is going on here.

    I tried making a blank stylesheet with just the background info and it still will not display.

  8. #8
    Join Date
    Mar 2008
    Location
    Ontario
    Posts
    39
    Plugin Contributions
    0

    Default Re: CSS image not displaying

    What is the absolute url of the image?
    What does the page think it is?



    #wrapper{
    background:url(../images/xmas_window_bg_top.jpg)
    }
    Jonny
    http://meshgraphics.com Where shapes become different shapes than the shapes they had been previously. Me do good ad copy 2

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

    Default Re: CSS image not displaying

    According to post 3, the image is in the right folder (assuming the current template folder is /xmas_shop/).

    Post a snippet of your view source, starting with <body and continuing 20 lines or so past the line with id="wrapper".
    Then post any stylesheet rules that refer to elements mentioned in the source snippet. That may give us something to go on. (The whole source and stylesheet would be hard to wade through unless absolutely necessary.) #wrapper is not a standard id, so indicates some customization.

  10. #10
    Join Date
    Jun 2006
    Posts
    298
    Plugin Contributions
    0

    Default Re: CSS image not displaying

    This just started happening on my template as well. It was working fine up until now and I haven't made any changes to my css in months.

    Did anyone ever come up with a solution?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v155 Font/CSS Not displaying properly
    By JRGoold in forum Upgrading to 1.5.x
    Replies: 5
    Last Post: 16 Jun 2016, 05:32 AM
  2. v150 css hyperlinks not displaying as I intended
    By mi16chap in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Oct 2012, 12:51 PM
  3. IE not displaying sidebar CSS properly
    By khanse44 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Feb 2010, 03:22 PM
  4. css buttons not displaying
    By yitzchak23 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Jul 2008, 12:04 PM
  5. CSS not displaying
    By Jimmy Mac in forum Installing on a Linux/Unix Server
    Replies: 2
    Last Post: 30 Oct 2007, 11:55 AM

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