Solved

Problem with navigation and missing image

Posted on 2015-02-02
2
89 Views
Last Modified: 2015-02-02
#headerwrap {
      background: url(assets/img/header_bg.jpg) no-repeat center top;

Hi- this site was working, and then I must have done something to mess it up. The image above is present on the server, but not showing up on diabeticmealprograms.com.

Also, the menu spacing is wrong, I need all that on one line, but I can't find anything in firebug that will show that to me.

Thanks for your help.
0
Comment
Question by:mel200
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 500 total points
ID: 40584416
The path inside your CSS is relative to the CSS file, so your page is looking for the image here:

http://www.diabeticmealprograms.com/assets/css/assets/img/header_bg.jpg

and it obviously doesn't exist.

You need to change your CSS so that it's relative to the root, and not your CSS folder by adding a leading slash (around line 303 of main.css)

background: url(/assets/img/header_bg.jpg) no-repeat center top;

Open in new window

0
 

Author Closing Comment

by:mel200
ID: 40584436
That was it, the whole thing. Thanks very much!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question