Results 1 to 3 of 3

Thread: HTML/CSS and transparent images

  1. #1
    Recognized Member Jessweeee♪'s Avatar
    Join Date
    Jul 2005
    Location
    i'm on a sandbar help
    Posts
    19,881
    Blog Entries
    12

    FFXIV Character

    Sarangerel Qha (Twintania)
    Contributions
    • Former Cid's Knight
    • Former Site Staff

    Default HTML/CSS and transparent images

    I have made a gif with partially transparent edges. When I try to insert it into a webpage it's no longer transparent. Is there some kind of...rule...I'm missing?

  2. #2
    Very VIP person Tech Admin Rantz's Avatar
    Join Date
    Apr 2006
    Posts
    17,631
    Articles
    1

    Default

    GIFs and 8-bit PNGs only support "simple" transparency, that is, each pixels is either fully transparent or fully opaque. For "complex" transparency/translucency/alpha channel, you need 24-bit PNG. There are other image file formats that support it, but PNG is what modern browsers support. You should be able to select "PNG (24-bit)" from most decent image editors, or otherwise if there's only one PNG option, you sometimes have to check a box reading "Alpha channel" or something else related.

    You may want to note that some ancient browsers do not handle alpha channels. IE6, for example, displays a gray background for PNGs with alpha channels. There is a proprietary filter you can use to get around that, though, if IE6 is important. In that case I'd advice you to Google it and read up on it a bit.

  3. #3
    Recognized Member Jessweeee♪'s Avatar
    Join Date
    Jul 2005
    Location
    i'm on a sandbar help
    Posts
    19,881
    Blog Entries
    12

    FFXIV Character

    Sarangerel Qha (Twintania)
    Contributions
    • Former Cid's Knight
    • Former Site Staff

    Default

    Changing it to PNG did the trick. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •