jQuerybeast
jQuerybeast

Reputation: 14490

Setting text background-color with transparency

Is it possible I can set a background-color for a text with transparency?

Example: http://jsfiddle.net/vH8qF/

but with transparency/opacity...

Thanks alot

Upvotes: 0

Views: 1672

Answers (1)

Rob W
Rob W

Reputation: 348972

(Semi-)transparent colors can be set by using hsla or rgba. Fiddle.

background-color: rgba(203, 233, 247, 0.5); /* 50% alpha channel*/

For more information, have a look at: MDN: colors

Upvotes: 1

Related Questions