Results 1 to 10 of 11

Hybrid View

  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.

 

 

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