• I have just began my site Captain Claw

    My question is how can I have images with a transparent background image.

    I removed background from image saved as jpg but image had white background when added to page.

    i was told this was image should be saved as .png. i have done this and also as .gif after making background transparent but when uploaded image still has white background.

    any ideas?

    thx in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Find this in your style sheet:

    .wp-caption {
    border: 1px solid #ddd;
    text-align: center;
    background-color: #f3f3f3;
    padding-top: 4px;
    margin: 10px;
    /* optional rounded corners for browsers that support it */
    -moz-border-radius: 3px;
    -khtml-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    }

    Remove what I posted in bold (backgound-color and border). That will remove the caption background and border. Whether or not it renders transparent in all browsers (IE6) maybe others, depends on the browser and any ie fixes that might be in the style sheet. Make a backup of your style sheet first, just in case something goes horribly wrong! Just kidding. (Not about the back-up, though.) ??

    Thread Starter auntiebiotic

    (@auntiebiotic)

    Cheers just tried the above but the same in Chrome firefox3 and ie

    I tested it in firefox 3.5 using firebug, and the changes I made rendered the background transparent on the captainclaw.png image. It worked like a charm for me. Did you clear your browser cache, or reload the style sheet from the server (Ctrl+F5) after making the changes? And if you made the changes to the style sheet in the wordpress built in editor, rather than with your ftp client, was wordpress able to actually save your changes afterword (was the file writable)? Just a couple things to check. Good luck.

    Thread Starter auntiebiotic

    (@auntiebiotic)

    Thx clayton not sure what I did but picture seems fine now. I will however copy and keep your post. Thx very much for time and effort to reply

    No problem at all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Why do images always have white backgrounds?’ is closed to new replies.