Reputation: 145
You can replace one color with another in CSS3?
Upvotes: 0
Views: 278
Reputation: 966
by a little tricks you can do this easily . just turn the inside of image ,transparent and then
<style type="text/css">
.bx{
width: 73px;
height: 73px;
background: transparent url("top.png") no-repeat;
}
.bx.yellow{background-color: yellow}
.bx.green{background-color: green}
</style>
and
<div class="bx"></div>
<div class="bx yellow"></div>
<div class="bx green"></div>
Upvotes: 3