Jump to content

No Images!?! Help!


amaterasu

Recommended Posts

I'm a newbie at CSS, so bear with me... [grin]I have a website that I hadn't really had access to since 2000. It was mostly written in the free HTML editor (PageMill based, I believe) that came with Netscape back in, oh... 1998-1999ish. Some of it I wrote in Notepad because I saw the HTML from that editor was about as inelegant a coding job as I could imagine!Anyway, I finally have internet access that isn't someone else's or the library's. I took all my old files and began to update them, thinking that I would try CSS. I did my index.htm file with the styles defined within the <head>, and it looks wonderful!Next, I set up a CSS file for the remaining files (because they all will have some differences from the home page) and went through the first page of code, linking it to the CSS file and then cleaning it of unnescessary tags. When I was done and looked at the finished result, the formatting looked great! Everything was exactly as I wanted it to be! Except...None of my graphics show up. No .gifs, no .jpgs. Nada. (The old code had the height, width, and borders defined and I had left that in, so there are boxes the proper size and location. But just that li'l dotted image that lets you know an image goes there.I checked to make sure everything was in the same folder, and it was. So it's not like it doesn't know where to look for the pics. I am so frustrated! I have been through the code, adding /'s to close images, in case that's the problem (it's not), and otherwise combing code for any misplaced logic.Any help would be WONDERFUL!

Link to comment
Share on other sites

  • 2 months later...

Hi, I'm also new here. And I've done the HTML tutorials up until the inserting images tutorial.The problem is (and this happened with the earlier tutorial about image links) I just can't seem to upload an image from my own MS Paint folder.Attempted Solutions:1.) I made sure I saved my pics as GIF and JPEG files.2.) I made sure there wasn't any mistakes in the HTML.--But I still can't get any images uploaded onto the homepage.What am I missing? :)

Link to comment
Share on other sites

When you say you can't upload your files, do you mean to a Web Hosting facility? Check the settings on the FTP client you are using. Some files need to be sent in Binary mode. Most FTP clients will auto detect the file type and switch modes, some don't.If the files are uploaded already ad you can't get them to display, that is a different problem. For that, we would need to see your coding.

Link to comment
Share on other sites

Thanks...No, I haven't gotten to that stage of finding a web host...yet, I'm just working with the HTML and previewing the webpage. So technically it's not on the internet.But, is it normal for my images not to show up when I'm previewing the webpage? (Perhaps, "images uploaded" wasn't the correct term, I meant "images inserted."):)

Link to comment
Share on other sites

your positive the images are in C:\Documents and Settings\HP_Owner\My Documents\My Pictures\Lee's\dex_litho.gif?If that still doesn't work put the image in the same folder as the html file then use this

<img src="dex_litho.gif" width="103" height="91">

Relative paths are always best anyways

Link to comment
Share on other sites

Sorry for some reason I couldn't get it.I'll try again:<img src="C:\Documents and Settings\HP_Owner\My Documents\My Pictures\Lee's\dex_litho.gif"width="103" height="91">
Also, are you using firefox? If so, you'll have to add a file:/// before the URL. :)
Link to comment
Share on other sites

Thanks , but it's not working...I placed the MSpaint file into the same folder as the html Notepad document, so that I can put the code in like this:<img src file:///="dex_litho.gif"width="103" height="91">I added the "file:///" before the URL, but all that did for me was replace the "X" at the top left corner of the empty 103 x 91 square with a little icon of a "red square, green circle, and blue triangle."What does this mean? Am I getting close to inserting my image? :)

Link to comment
Share on other sites

No, i front of the image path. Not in front of the =. It should be
<img src="file:///dex_litho.gif" width="103" height="91">

now. Try that!

Thanks for all your help and support...but I'm still not getting any images inserted. :) Here's the code I have so far:<html><head><title>Title of page</title></head><body><img src="file:///dex_litho.gif" width="103" height="91"</body>
Link to comment
Share on other sites

regardless of what browser you are using put the image in the same folder as the html page and use exactly this.

<html><head><title>Title of page</title></head><body><img src="dex_litho.gif" width="103" height="91"></body>

Link to comment
Share on other sites

regardless of what browser you are using put the image in the same folder as the html page and use exactly this.
<html><head><title>Title of page</title></head><body><img src="dex_litho.gif" width="103" height="91"></body>

I have the GIF image in the same folder as the HTML and have used the code you have given me, and I've quadruple checked for any mistakes in my markup. But I'm still not getting anything.I'm beginning to wonder if there's a bug or program interferring with my machine. Is this possible even if I have my machine checked and cleaned almost everyday? (Btw, thanks for putting up with me. You guys are awesome!) :)
Link to comment
Share on other sites

can you sign up for a free hosting account (awardspace.com is good) and setup your page there...that way we can get a look at the code in action. Be sure to upload the image to the same folder as the page.
Thanks, I'll try that as soon as possible...I'll let you know when I have it ready. :)
Link to comment
Share on other sites

  • 3 weeks later...
Sorry... :) It seems trouble follows me where ever I go. :) I'm having trouble registering at Awardspace...so it's going to be a while before I'll get a website up and running for you all to look at it.
the same thing happens to me. Just upload the images and the note pad documents to the web host site.when you do that it should workDylan
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...