Isarius
Isarius

Reputation: 91

Making the background-color lighter

Is it possible, to make a specified color lighter?

for example, if I got a HEX color: #FF0000 I 'll use something like lighter(#FF0000); which will return fe. #FF3333.

Upvotes: 2

Views: 1186

Answers (1)

Smamatti
Smamatti

Reputation: 3931

This is not possible in CSS yet.

You can change this via script (dynamically): Generate lighter/darker color in css using javascript

Or use other methods to calculate these values (static calculation): http://www.lesscss.org

Upvotes: 1

Related Questions