Make any particular color transparent with CSS Filters


To make any particular color transparent, use Chroma Filter. You can use it with scrollbars also.

The following parameter can be used in this filter

Parameter
Description
Color
The color that you'd like to be transparent.

Implementing the CSS Chroma Filter −

Live Demo

<html>
   <head>
   </head>
   <body>
      <img src="/images/css.gif" alt="CSS Logo" style="Filter: Chroma(Color = #FFFFFF)">
      <p>Text Example:</p>
      <div style="width: 580;
         height: 50;
         font-size: 30pt;
         font-family: Arial Black;
         color: #3300FF;
         Filter: Chroma(Color = #3300FF)">CSS Tutorials</div>
   </body>
</html>

Updated on: 13-Mar-2020

740 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements