Skip navigation
Currently Being Moderated

Background Evaporation!

May 30, 2012 4:39 AM

Hi Folks,

 

I hope you can help me with this one.  I've scratched my head so much that I'm bald.  I'm sure it's a simple answer, but I'm looking in all the wrong places.

 

Though my background photo shows up in Design View, it doesn't show up on the Internet. 

 

The source code on the Internet and in the Code View look the same.

 

www.impossiblemusic.com

 

Where did the background photo go?

 

Thanks,

 

BT

 
Replies
  • Currently Being Moderated
    May 30, 2012 4:53 AM   in reply to Crellin Sound

    You have two CSS rules calling the photo: one good path and one bad path

     

    This rule on lne 65 (photo does not exist in that location)

     

    body {

    background-image: url(../Crellin%20Sound%20Website/Photos/Scenery/TopMenu%20Sky%205.jpg );

    }

     

    comes later down in the code and therefore trumps this rule on Line 10 (photo does exist)

     

    body {

    background-image: url(Photos/Scenery/TopMenu%20Sky.jpg);

    }

     

    Simple solution is to delete the second CSS rule.

     
    |
    Mark as:
  • Currently Being Moderated
    May 30, 2012 5:25 AM   in reply to John Waller

    I'm confused.  First of all, which photo is missing?  Second, how is deleting the GOOD link going to help?  Third, if the good link is closer to the body tag than the bad one, then the bad link will be replaced by the good one, no?

     
    |
    Mark as:
  • Currently Being Moderated
    May 30, 2012 1:10 PM   in reply to MurraySummers

    Murray *ACP* wrote:

     

    First of all, which photo is missing?

     

    This one

     

    http://www.crellinsound.com/Photos/Scenery/TopMenu%20Sky.jpg

     

     

    Murray *ACP* wrote:

     

    Second, how is deleting the GOOD link going to help?

     

    I said to delete the BAD link on  Line 65

     

     

    Murray *ACP* wrote:

     

    Third, if the good link is closer to the body tag than the bad one, then the bad link will be replaced by the good one, no?

     

    The good link comes first (Line 10).

     

    The bad link on Line 65 trumps it - hence delete it.

     

    Check the page in Firebug or F12 in IE.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 1, 2012 11:36 AM   in reply to Crellin Sound

    This is becoming way more complicated than it needs to be.

     

    It's a simple path issue. i.e. the code pointing to the correct location on the server where the photo is located.

     

    As the code at http://www.crellinsound.com/musicloruvani1.html stands now:

     

    Line 10

     

    body {

    background-image: none;

    }

     

    is trumped by

     

    Line 65

     

    body {

    background-image: url(../Crellin%20Sound%20Website/Photos/Scenery/TopMenu%20Sky%203.jpg );

    }

     

    Sidenote: Line 10 is redundant.

     

    Line 65 is pointing to a folder above the root folder of the site (= does not exist). In other words, the path is wrong.

     

    Where is the photo actually located on the remote server?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points