Jump to content
Killersites Forums

Remove White Background Around An Image On My Website


Scotty13
 Share

Recommended Posts

On my website page, I’ve inserted an image in a php scripts and it has a white box around it. Image is saved in my “images” folder in my server.

 

I know how to remove the white back ground (Adobe Fireworks), so you just see the image.

 

What I want to know is now that I have my image with no background, how do I make it were the image does NOT show a white box on my webpage?

 

Thanks in advance,

Scotty

Link to comment
Share on other sites

What Ben said.

By 'white box around it' - do you mean a border? That could be taken care off via CSS - img {border: 0;}

But if you're talking about the actual background, you'll have to create a gif or a png with a transparent background.

Link to comment
Share on other sites

I'm confused - I see one image that seem to display all three things you mention - logo (if that's the globe), don't see 'airmail, just an airplane, and the red arrow:

 

mgplogo1.png

If that is what you're talking about - there is no white border, but there is a white background. As I mentioned before, use your graphics program to set the background as transparent, and it'll disappear.

I've attached what it'll look like. You may have to adjust settings.

Link to comment
Share on other sites

First, thank you for your help.

 

Second, I like my logo but not my red arrow. The original image is sharp at 101 x 111. And the image size on my website is width="60" height="50".

 

Should I be searching for smaller images and gif images, than add that one to my website?

 

Scott

Link to comment
Share on other sites

You should reduce the image size with your image editor instead of displaying it reduces. If you must reduce it, at least be sure to do so proportionately.

 

And actually, the image you had on the page you had provided the link to is really 260 x 245, so, to achieve a new width of 60px, it would need to be 57px high in order to not skew it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...