Help with pictures! |
Help with pictures! |
sydna1 |
May 20 2010, 09:08 PM
Post
#1
|
Group: Members Posts: 2 Joined: 20-May 10 Member No.: 11,914 |
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? |
Darin McGrew |
May 20 2010, 09:22 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
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 |
sydna1 |
May 20 2010, 09:57 PM
Post
#3
|
Group: Members Posts: 2 Joined: 20-May 10 Member No.: 11,914 |
thanks dude, great help!
|
Lo-Fi Version | Time is now: 20th April 2024 - 04:46 AM |