Results 1 to 9 of 9
  1. #1
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default background image not displaying

    We have added a background image to the navmain wrapper but it is not displaying. it is displaying on our page as white space. Therefore our links are not showing because the text color of the links are white unil they are rolled over with the mouse and then they are seen in the pink color we applied to the hover state. Our css coding is:

    #navMainWrapper, #navSuppWrapper, #navCatTabsWrapper {
    background-color:#987c8a;
    background-image:url(../images/bg_nav_background.JPG);
    background-repeat:repeat;
    color:#FFFFFF;
    font-weight:bold;
    height:1%;
    margin:0;
    padding:0.5em 0.2em;

    usually I understand that a jpeg file should be named in lower case but the computer we are working on only allows for the file to be upper case JPG extension. So this is not our issue. Also I believe the url is correct.

    Is there something missing or is there another file associated with the background of this div?

    Any help is greatly appreciated.

    The link to our site is www.bohemianglitz.com
    Last edited by melindaf; 8 Aug 2009 at 06:15 AM. Reason: add link to website

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: background image not displaying

    Your background image is displaying, you just can't see it.

    What has happened is that you have attached the background image to the navMainWrapper div but then given that wrapper a height of just 1%. So its quite thin and sitting rather higher on the page than you think it is, mixed in with an element that has the same background.

    The links that you can see when you hover over them, are actually overflowing the space that the div is occupying, and as overflow won't take the background with them.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: background image not displaying

    We have made the suggested changes but the background image is still not displaying? What are we doing wrong?

  4. #4
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: background image not displaying

    Where are you expecting to see the background image? I'm seeing it in the right and left margins of the site.

    Please consider optimizing your images. The site loads very slowly because the images are huge.

    Also, you shouldn't be storing your images in the /classic folders or editing any of the files in the /classic folders. Create folders for your own custom template.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  5. #5
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: background image not displaying

    The background image is suppose to be the same image used for the navigation-- it is purple and the space is showing white.

    As i previously stated: "We have added a background image to the navmain wrapper but it is not displaying. it is displaying on our page as white space. Therefore our links are not showing because the text color of the links are white unil they are rolled over with the mouse and then they are seen in the pink color we applied to the hover state."

    So if there is a link to an image that shows up in the other areas I have applied the image to --why isn't it showing up in the navmain links?

  6. #6
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: background image not displaying

    navmainwrapper controls the navigation. I believe what you want is

    Code:
    /*wrappers - page or section containers*/
    #mainWrapper {
    	background-color: #ffffff;
    	background-image: url(../images/bg_nav_background.JPG);
    	text-align: left;
    	width: 750px;
    	vertical-align: top;
    	border: 1px solid #9a9a9a;
    	}
    Add the line in red to the quoted area in your stylesheet and see if that's what you're looking for. Once you do that, you may have to adjust the color of some of the text.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  7. #7
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: background image not displaying

    if I change the Main Wrapper it changes all of the page to the purple background image. That is not what we want. All we want is to change the white space at the top of the page above the logo image. So the colors when you look at the center and top of the page are :

    a purple background stip at the top
    then a white space with the Home and Login links-- this is the space we want a background image
    then our logo is below this
    then the navigation and the rest of the content which should be white to make it easy to see the product images and descriptions.

    Any other suggestions??

  8. #8
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: background image not displaying

    You changed the height from 1% to 100%. However, because the div has no intrinsic height, that's 100% of nothing (which also means that it wasn't actually showing before ). If you give it an explicit height (2em seems to work well), your background will appear.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  9. #9
    Join Date
    Jul 2009
    Posts
    37
    Plugin Contributions
    0

    Default Re: background image not displaying

    Thank you so much for the solution and your time. it is finally fixed and looking like we want it to.

 

 

Similar Threads

  1. Image Background not displaying
    By rebelman in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 19 Jun 2014, 04:57 AM
  2. Background Image Not Displaying
    By jhowe in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 14 Jul 2012, 10:19 AM
  3. Page not displaying background.
    By rdcast in forum General Questions
    Replies: 6
    Last Post: 14 Mar 2010, 05:39 PM
  4. Background Images for Sidebox Headers Not displaying In IE.
    By SurrealDesign in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 26 Jan 2009, 05:18 PM
  5. Background image not displaying
    By rwj in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Jun 2008, 07:18 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