css - opacity on linear gradient background-image -
how can set opacity value, example opacity: 0.6 on linear-gradient background-image? background-image: linear-gradient(to left, #00497a -26.48%,#003366 73.52%); thanks! replace hexidecimal color-codes rgba color-codes : div { width: 150px; height: 150px; background-image: linear-gradient(to left, rgba(0,67,116,0.6) -26.48%, rgba(0,51,102,0.6) 73.52%); } <div> </div>