CSS3, how to make my Gradient WebKit background transparent?

I have the following CSS line:

background: -webkit-gradient(linear, left top, left bottom, from(#243d63), to(#1a2638));

How to make a transparent background, i.e. 0.9 opacity so the user can see what is under the div that has this style? Just for WebKit only care ...

thank

+3
source share
1 answer

Use rgba

    background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(255,52,21,0.2)), to(#000), color-stop(.6,#000));
Syntax

rgba is this: rgba(redInDecimal,greenInDecimal,blueInDecimal,alphaFrom0To1);

http://jsfiddle.net/PxnXn/1/

+5
source

Source: https://habr.com/ru/post/1759438/


All Articles