graphics not appearing when linking..

This is a discussion on "graphics not appearing when linking.." within the Web Page Design section. This forum, and the thread "graphics not appearing when linking.. are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Dec 30th, 2006, 08:18
Junior Member
Join Date: Oct 2006
Location: Denver
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
graphics not appearing when linking..

I cant figure out why my graphics for the navigation are not appearing when I simply attach the style sheet to the document by linking to it.
But when it is an embedded style sheet, it appears jsut fine.

any ideas?
here is the page(s) in question:
http://home.comcast.net/~adamq/chapter2/

thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Dec 30th, 2006, 10:11
Rob's Avatar
Rob Rob is offline
Webforumz Founder
Join Date: Jul 2003
Location: Southern UK
Age: 34
Posts: 3,186
Blog Entries: 7
Thanks: 27
Thanked 23 Times in 20 Posts
Re: graphics not appearing when linking..

they are appearing fine for me...

maybe it is your cache.

Try CTRL + F5
__________________
Click the 'Thanks!' button if this post has helped you

Rob - Webforumz Founder
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Dec 30th, 2006, 10:45
Tim356's Avatar
Reputable Member
Join Date: Nov 2003
Location: Australia
Age: 26
Posts: 331
Thanks: 0
Thanked 0 Times in 0 Posts
Re: graphics not appearing when linking..

ditto. Has to be your cache.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Dec 30th, 2006, 18:32
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: graphics not appearing when linking..

The link you have given us is for the embedded styles.

Lets see your page with the external stylesheet encoded.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Dec 31st, 2006, 02:42
Junior Member
Join Date: Oct 2006
Location: Denver
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: graphics not appearing when linking..

oops im not thinking, I removed it and used embedded and forgot about my post! ok,, I linked the style sheet to my markup to just the main index.html page, check it out now - it doesn't display and I cant figure it out

thanks
http://home.comcast.net/~adamq/chapter2/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Dec 31st, 2006, 05:45
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: graphics not appearing when linking..

The reason your graphics are not appearing is because you are not using full URL links. For example here is what you have now.

Code: Select all
#navList {
    background: #7F7F7F url(images/bg.gif) repeat-x bottom left;
}
I deleted the other code so that you can see the area I am talking about. Here is the link to your style sheet.
Code: Select all
http://home.comcast.net/~adamq/chapter2/styles/styles.css
Within your style sheet you are telling it that the URL to that picture is...
Code: Select all
images/bg.gif
Which would be...
Code: Select all
http://home.comcast.net/~adamq/chapter2/styles/images/bg.gif
When really the URL is...
Code: Select all
http://home.comcast.net/~adamq/chapter2/images/bg.gif
I would recommend always using full URL links, but you really have two options, you can either move your style sheet, or make the links within your style sheet have full URL's. I would recommend the last one...Good Luck!!

Last edited by JacobHaug; Dec 31st, 2006 at 05:52.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Dec 31st, 2006, 16:46
Junior Member
Join Date: Dec 2006
Location: Portsmouth
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: graphics not appearing when linking..

Seeing as your stylesheet is in a subfolder of the chapter2 folder, as are your images, you don't need to use absolute references, you can still use relative ones.

So instead of
Quote:
images/bg.gif
just use
Quote:
../images/bg.gif
It's simpler than the full URL as it enables you to move your site around etc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Jan 1st, 2007, 03:27
Junior Member
Join Date: Oct 2006
Location: Denver
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: graphics not appearing when linking..

thanks, I didnt realize that! I agree, relative links are better then absolute. I have done this before many times with no problems, but I;m not sure why the links were not relative. so I went back into the stylesheet and when selecting the graphic, it became relative.

thanks for your responses!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Jan 1st, 2007, 03:47
Elite Veteran
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Re: graphics not appearing when linking..

No problem...glad I could be of help to you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
style

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphics Not Appearing teranceh Web Page Design 5 Sep 24th, 2007 15:00
text appearing outside <div> PLEASE HELP! tobymather Web Page Design 5 Jul 29th, 2007 00:31
Frame appearing around Hotspot JennyChaos Starting Out 1 Jul 7th, 2007 00:45
Free Graphics site looking for link exchange with another graphics website! mgcom Link Building and Link Sales 6 Aug 19th, 2006 12:51
My URL icon isn't appearing. Waa, waa, waa! timmytots Web Page Design 10 Nov 13th, 2005 23:54


All times are GMT. The time now is 19:27.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42