Solved

HTML page displaying image incorrectly

Posted on 2009-05-16
5
165 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now