wiliam
wiliam

Reputation: 21

How can I do this using CSS?

i have a image who are look like a transparent but working as a zebra table like chase and i want to apply a color rgba(12,120,234,0.4);

how i can show the image and color both

background-image: url('Images/embedded_bg.png');
background-color: rgba(12,120,234,0.4);

Upvotes: 2

Views: 72

Answers (2)

wiliam
wiliam

Reputation: 21

i got the sollution is here

body
{

   background-image: url('Images/embedded_bg.png');
   width:1000px;
}
#main
{
    background-color: rgba(12,120,234,0.4);
}

Upvotes: 0

Pat
Pat

Reputation: 25675

You can combine them with the background property:

background: rgba(12,120,234,0.4) url('Images/embedded_bg.png') repeat 0 0;

In action here.

Upvotes: 3

Related Questions