Got a little techonology problem that you need fixed pronto? Post it here and we'll see what we can do.
Topic locked

Code for transparency <3

Sun Feb 05, 2006 8:05 pm

I hink this is the correct board to post this on o_o But I cant seem to get it to work on a request I am doing for a pet o_o WHat do I do xP

Sun Feb 05, 2006 10:56 pm

Sorry, I don't understand what your asking... o_O :roll:

Sun Feb 05, 2006 11:01 pm

The code that removes the white around images xP

Sun Feb 05, 2006 11:04 pm

Theres a code? I think you have to put the transparency in when you make the graphic don't you? >-<

Sun Feb 05, 2006 11:05 pm

maniac wrote:Theres a code? I think you have to put the transparency in when you make the graphic don't you? >-<


Yep- what program do you use, I can maybe help you out. :)

Sun Feb 05, 2006 11:07 pm

Code:
<style>p img{filter:chroma(color=white)}</style>


I think that may be what you wanted.

Sun Feb 05, 2006 11:30 pm

Moving to Computing & Technology. All coding queries should go there. :)

Sun Feb 05, 2006 11:35 pm

DM was on fire! wrote:
Code:
<style>p img{filter:chroma(color=white)}</style>


I think that may be what you wanted.

Thats what I ment xP Thanks But for some reason it never works o_o

Sun Feb 05, 2006 11:38 pm

By any chance, are you using Internet Explorer?

Mon Feb 06, 2006 4:45 am

I tested it on both IE and Mozilla

Tue Feb 07, 2006 2:16 am

This works for me:
Code:
<html>
   <head>
      <title>None Foo</title>
   <style>
      img
      {
         filter: chroma(color=white);
      }
   </style>
   </head>
   <body bgcolor="blue">
   <!-- google logo -->
      <img src='logo_sm.gif' />
   </body>
</html>


I don't recommend this though because it will only work in IE.

Wed Feb 08, 2006 6:57 pm

Weird. Most of the time, it works for me on Mozilla. o_o

Wed Feb 08, 2006 7:29 pm

It does not work in Mozilla or Firefox for me, but works in IE.

I would suggest against using the filter command, simply because it isn't really accepted by all browsers. Find another way to do what you want (like transparent images if you're developing your own site) or find a different background.
Topic locked