9 replies [Last post]
littlered136
littlered136's picture
User offline. Last seen 1 week 13 hours ago. Offline
rank Enthusiast
Enthusiast
Joined: 2008-11-22
Posts: 90
Points: 38

Hi

I have finished coding my site and it will not show the background image, I know I have pointed it to the correct place and yet it will not show it.

anyone see where an earth I have gone wrong or what might be stopping it working.

i have run a css validator check on it and found no errors.

www.hewhood.com/index3.htm

many thanks

Hugo
Hugo's picture
User offline. Last seen 7 hours 26 min ago. Offline
rank Moderator
Moderator
Joined: 2004-06-06
Posts: 15096
Points: 2191

You're not clear on what

You're not clear on what image isn't being shown, I see images? If you mean the pop up image:

files/headline.png

That does NOT appear to be in that directory and was the first thing I checked.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

littlered136
littlered136's picture
User offline. Last seen 1 week 13 hours ago. Offline
rank Enthusiast
Enthusiast
Joined: 2008-11-22
Posts: 90
Points: 38

oh sorry it is this file that

oh sorry it is this file that does not show up.

files/background.jpg it is in the nov.css code and is in the filder called files.

it is meant go have a sort of graduated grey white effect and has the buttons on it that you can then navigate left and right. the code is there for the the link to work but it needs the image for the viewer to see the button is there. so without the background showing up no one will know, plus it gives it a better backdrop.

does this make more sense now?

thanks so far

littlered136
littlered136's picture
User offline. Last seen 1 week 13 hours ago. Offline
rank Enthusiast
Enthusiast
Joined: 2008-11-22
Posts: 90
Points: 38

oh sorry it is this file that

oh sorry it is this file that does not show up.

files/background.jpg it is in the nov.css code and is in the filder called files.

it is meant go have a sort of graduated grey white effect and has the buttons on it that you can then navigate left and right. the code is there for the the link to work but it needs the image for the viewer to see the button is there. so without the background showing up no one will know, plus it gives it a better backdrop.

does this make more sense now?

thanks so far

Hugo
Hugo's picture
User offline. Last seen 7 hours 26 min ago. Offline
rank Moderator
Moderator
Joined: 2004-06-06
Posts: 15096
Points: 2191

You just have your file paths

You just have your file paths wrong. Both stylesheet file and image are in the same directory. Calls in stylesheets are relative to that stylesheet. You can't be looking for a folder named 'files' in the folder named 'files' which is what your background url paths are looking for.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

littlered136
littlered136's picture
User offline. Last seen 1 week 13 hours ago. Offline
rank Enthusiast
Enthusiast
Joined: 2008-11-22
Posts: 90
Points: 38

oh ok I think I understand

oh ok I think I understand what your saying, will go and have a go at what I think it is you have siad and see if that works.

thanks lots

Hugo
Hugo's picture
User offline. Last seen 7 hours 26 min ago. Offline
rank Moderator
Moderator
Joined: 2004-06-06
Posts: 15096
Points: 2191

You just need to remove

You just need to remove `files/`

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

littlered136
littlered136's picture
User offline. Last seen 1 week 13 hours ago. Offline
rank Enthusiast
Enthusiast
Joined: 2008-11-22
Posts: 90
Points: 38

looks like maybe I didn't

looks like maybe I didn't know what you meant.

I put my css and js files into a different folder and redirected the files in the code. however, it still will not show the background image up, it shows all the other images in that folder but not the background folder.

think my brain just seems to have stopped working

littlered136
littlered136's picture
User offline. Last seen 1 week 13 hours ago. Offline
rank Enthusiast
Enthusiast
Joined: 2008-11-22
Posts: 90
Points: 38

brain just kicked in .. i

brain just kicked in .. i sooooo see where I was goign wrong.. wow my brain really did shut down...

thanks

Hugo
Hugo's picture
User offline. Last seen 7 hours 26 min ago. Offline
rank Moderator
Moderator
Joined: 2004-06-06
Posts: 15096
Points: 2191

We all do it from time to

We all do it from time to time Smile

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me