Solved

HTML page displaying image incorrectly

Posted on 2009-05-16
5
167 Views
Last Modified: 2012-05-07
Hi,

I'm working on a page from a template I received, and inserted an image inside the BUY IT NOW box. The page is http://www.best-family-photography-tips.com/QT3-exitpage.html and the buy it now button should not have a blue rectangular border with a little white background showing.

The image displays fine by itself, so there's a problem with the code somewhere and I'm going nuts after trying to find it for 2 hours.

Can you please help?
0
Comment
Question by:photoman11
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:Tosko
ID: 24404270
I see that your image is a .jpg file.

Try to save that image as .png or .gif instead of jpg.
It has nothing to do with your script, just .jpg doesn't support transparency.

Hope this helps you solve your problem,
Tosko
0
 
LVL 2

Accepted Solution

by:
Tosko earned 500 total points
ID: 24404274
Oh p.s. the blue border is easy to get rid of. Just insert border="0" in the image tag.

Example:
<img src="this_is_my_image.png" border="0">
0
 

Author Comment

by:photoman11
ID: 24408376
Tosko,

I've been working with images for 4 years and never knew that. It does explain a lot! Thanks for opening my eyes.
0
 

Author Closing Comment

by:photoman11
ID: 31582283
superior clear, direct answer.
0
 
LVL 2

Expert Comment

by:Tosko
ID: 24424759
You're welcome ^^
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question