Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Markup (HTML, XHTML, XML) _ Help with pictures!

Posted by: sydna1 May 20 2010, 09:08 PM

So I've been trying to use pictures on a file in my c drive on my little "test" website. here's how I'm doing it (using a link as a picture)

<a href="google.com"><img src="C:\html\home_button.bmp" alt="home"
style="position:absolute;top:200;left:200"></a>

I have a picture called home_button.bmp, but it only shows the alt text, home.
The link works just fine, but the picture just won't show up. Any ideas/tips/help?

Posted by: Darin McGrew May 20 2010, 09:22 PM

First, don't use BMP images. They're much larger than other formats, and they are poorly supported. Convert the images to GIF or PNG and use those.

Second, don't use Microsoft style backslash \ characters. URLs use slash / characters.

Also, see these FAQ entries:
http://htmlhelp.com/faq/html/basics.html#relative-url
http://htmlhelp.com/faq/html/images.html#broken-image

Posted by: sydna1 May 20 2010, 09:57 PM

thanks dude, great help!

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)