GeekIMO

GeekIMO *
Please login or register.

Login with username, password and session length
 

  • Home
  • Help
  • Search
  • Login
  • Register

  • GeekIMO »
  • Software »
  • Programming Discussion & Issues »
  • Website Images Wont Show
« previous next »
  • Reply
  • Print
Pages: 1   Go Down

Author Topic: Website Images Wont Show  (Read 321 times)

Offline Cloud

  • Administrator
  • Guest
  • Posts: 870
  • Geek-Ups: +14/-0
    • View Profile
    • Forge Team
Website Images Wont Show
« on: October 05, 2008, 06:32:50 PM »
  • Quote
Ok So I'm new to web developing I have my own site with the FileZilla ftp client and my background wont show and neither does my logo. I've uploaded them though. Any tips?

WEBSITE
« Last Edit: October 05, 2008, 06:44:33 PM by 1 »
Report to moderator   Logged

Offline i-CONICA

  • Administrator
  • Guest
  • Posts: 8
  • Geek-Ups: +0/-0
    • View Profile
    • FileQuake.com
Re: Website Images Wont Show
« Reply #1 on: October 05, 2008, 06:38:10 PM »
  • Quote
looking at your code, there is no images linked anywhere in the code... if you've uploaded them, you need to put code to call them into your page.

use
Code: [Select]
<img alt="name of image in case it can't be shown" src="http://domain.com/images/yourimage.png"/>
change the alt tag to a name or description of the image, this will be shown if the browser can't find the image where you said it is.

change the src to the actual path of your image.
It can be a http path, which is absolute, or relative (faster) relative paths would be
image.png if the image is in the same directory as the file which is asking for it.
../image.png if it's one directory back ../../image.png if it's two directories back or image/redimages/image.png if it's ahead of it in the path structure.

Might be a little confusing, just use absolute paths for now.  ;)
Report to moderator   Logged

Offline Cloud

  • Administrator
  • Guest
  • Posts: 870
  • Geek-Ups: +14/-0
    • View Profile
    • Forge Team
Re: Website Images Wont Show
« Reply #2 on: October 05, 2008, 06:44:13 PM »
  • Quote
gotcha!
Report to moderator   Logged

Offline Cloud

  • Administrator
  • Guest
  • Posts: 870
  • Geek-Ups: +14/-0
    • View Profile
    • Forge Team
Re: Website Images Wont Show
« Reply #3 on: October 05, 2008, 06:46:14 PM »
  • Quote
the first is a background image and the second is the logo. What would I do for the background?
Report to moderator   Logged

Offline i-CONICA

  • Administrator
  • Guest
  • Posts: 8
  • Geek-Ups: +0/-0
    • View Profile
    • FileQuake.com
Re: Website Images Wont Show
« Reply #4 on: October 05, 2008, 06:54:07 PM »
  • Quote
look for this
Code: [Select]
<body>
change to this

Code: [Select]
<body background="bgimage.png">
that's THEE most basic way of doing it, not the best, but the most simple..

Ideally you'd be using CSS and then you could be much more specific with the attributes.
Report to moderator   Logged

Offline Cloud

  • Administrator
  • Guest
  • Posts: 870
  • Geek-Ups: +14/-0
    • View Profile
    • Forge Team
Re: Website Images Wont Show
« Reply #5 on: October 05, 2008, 07:03:19 PM »
  • Quote
Ok, there is a BIG difference with my html offline and online, look at the attached html. Its interactive but my website isn't... Could you help please?

Sorry had to compress it. .html isn't allowed.
* index_6954.zip (1.27 kB - downloaded 39 times.)
Report to moderator   Logged

Offline i-CONICA

  • Administrator
  • Guest
  • Posts: 8
  • Geek-Ups: +0/-0
    • View Profile
    • FileQuake.com
Re: Website Images Wont Show
« Reply #6 on: October 05, 2008, 07:09:44 PM »
  • Quote
Your online site looks identical to the offline page to me. what exactly is the difference?

Also
Code: [Select]
<link href="style.css" rel="stylesheet" type="text/css" />
means it's looking for a file called style.css in the same directory as that index.html file, But no such file exists. Either make the file, or remove the link to it. All the divs, both classes and ids are all referencing the data from style.css which isn't there. If you started with a web template from somewhere, you need to get the style.css file from there also.
Report to moderator   Logged

Offline Cloud

  • Administrator
  • Guest
  • Posts: 870
  • Geek-Ups: +14/-0
    • View Profile
    • Forge Team
Re: Website Images Wont Show
« Reply #7 on: October 05, 2008, 07:14:07 PM »
  • Quote
ahh thanks, I thought it was to do with a file will do :)
Report to moderator   Logged

  • Reply
  • Print
Pages: 1   Go Up
« previous next »
  • GeekIMO »
  • Software »
  • Programming Discussion & Issues »
  • Website Images Wont Show
 

+ Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:

  • Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
  • Sitemap
  • RSS
  • WAP2

Page created in 0.111 seconds with 17 queries.