Sure, use rgba():
div ul li a.title {
padding: 0px 12px 0 0px;
background:rgba(255,0,0,.2);
}
سؤال
Is there a way to opacity only background-color of a text in css?(not text color...just background-color of The text)....I do not want use image background.
This is an example:
background is opacity but the text is opacity too...I do not want it...
المحلول
Sure, use rgba():
div ul li a.title {
padding: 0px 12px 0 0px;
background:rgba(255,0,0,.2);
}
نصائح أخرى
Use background: rgba(255, 0, 0, .2);
Use rgba()
to get that transparent background you need, like this:
background: rgba(255,0,0,0.5);