#1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2001
    Location
    Midrand, South Africa
    Posts
    154
    Rep Power
    14

    Question Image Transparency and CSS


    I heard of people using CSS stylesheets to define the color in an image to appear transparent. Anyone know how to do it?
    Neil Craig
    Software Developer
    SourceCode Techonolgy Holdings Inc
    South Africa
  2. #2
  3. Corporate Stooge
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Aberdeen, Scotland
    Posts
    134
    Rep Power
    14
    You heard wrong.

    Image transparency is done when the image is created/edited. Generally br specifying whic of the index colours should be see-through.
    Never sign your code....it leaves you liable!
  4. #3
  5. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    24
    Well no, not exactly. Some browsers respond to the 'filter' attribute of CSS.

    http://hotwired.lycos.com/webmonkey/...l?tw=authoring
  6. #4
  7. Corporate Stooge
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2001
    Location
    Aberdeen, Scotland
    Posts
    134
    Rep Power
    14
    I stand corrected.

    Personally I would prefer to manipulate the image directly as I could set transparency at the same time I did blurring, anti-aliasing etc.

    The example you sent has a particulary bad transparent image looking very blocky around the edges.

    Maybe if he had done the transparency in a paint package he would of been tempted to do that at the same time...
    Never sign your code....it leaves you liable!
  8. #5
  9. Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Oct 2001
    Location
    New Zealand
    Posts
    1,774
    Rep Power
    24
    Didn't say that it was any good though... the only thing I've ever used the filter style for is to annoyingly fade text up to attract attention.

IMN logo majestic logo threadwatch logo seochat tools logo