Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    help question centerMainWrapper background image not recognized

    I am trying to place a background image in the contentMainWrapper area so it shows up in the left, center and right columns.

    I am using this code:
    #contentMainWrapper {
    padding-bottom: 20px;
    border-left:1px solid #663300;
    border-right:1px solid #663300;
    background-image:url(../images/Bgmain.gif);
    background-repeat:repeat-x;
    background-position: bottom left;
    }


    Opera shows this:

    #contentMainWrapper {
    background-color: #f3f1f1;
    border-left-color: #663300;
    border-left-style: solid;
    border-left-width: 1px;
    border-right-color: #663300;
    border-right-style: solid;
    border-right-width: 1px;
    padding-bottom: 20px;
    }

    http://www.stitchboutiqueboston.com

    I can't seem to figure out why it is ignoring the background-image line.

    TIA Tom

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,391
    Plugin Contributions
    94

    Default Re: centerMainWrapper background image not recognized

    I couldn't see what the issue is with your background image, but you've got Categories misspelled as Catagories on your left sideber.

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

    Default Re: centerMainWrapper background image not recognized

    Not sure what you put in the background, but this is what you have:
    Code:
    #contentMainWrapper {
    	/*background-color:#F3F1F1; */
    	padding-bottom: 20px;
    	border-left:1px solid #663300;
    	border-right:1px solid #663300;
    	background-image:url(../images/Bgmain.gif) scroll repeat-x left bottom;
    It needs to be like this:
    Code:
    #contentMainWrapper {
    	padding-bottom: 20px;
    	border-left:1px solid #663300;
    	border-right:1px solid #663300;
    	background:#F3F1F1 url(../images/Bgmain.gif) scroll repeat-x left bottom;
    }
    When using the combined "shorthand" background property, you need to use background: and not background-image:

  4. #4
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Re: centerMainWrapper background image not recognized

    Thanks for the catch.

    I looked at the css in Firebug and it is what it is showing.

    #contentMainWrapper {
    background-color: #F3F1F1;
    border-left: 1px solid #663300;
    border-right: 1px solid #663300;
    padding-bottom: 20px;
    }


    This line does not appear.

    background-image:url(../images/Bgmain.gif) scroll repeat-x left bottom;

  5. #5
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Re: centerMainWrapper background image not recognized

    Thanks

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

    Default Re: centerMainWrapper background image not recognized

    Firebug does not show what the actual file contains; it shows a standardized version of the information in the file.

    background-image:url(../images/Bgmain.gif) scroll repeat-x left bottom; is not a valid declaration because of the extra values in it, so Firebug ignores it, as do browsers when rendering the styling.

 

 

Similar Threads

  1. Dropdown Menu Selection Not Recognized
    By ToniScraparoni in forum Contribution-Writing Guidelines
    Replies: 3
    Last Post: 1 Jan 2011, 12:49 AM
  2. Customer email not recognized
    By muah in forum General Questions
    Replies: 4
    Last Post: 24 Sep 2010, 12:08 AM
  3. Spanish characters not recognized
    By Herbs_Of_Mexico in forum Addon Language Packs
    Replies: 0
    Last Post: 15 Nov 2008, 02:13 AM
  4. add background image to a attribute then have that background image act as hyperlink
    By sike1234 in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Nov 2008, 05:38 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR