...

View Full Version : Safe RGBA Fallback



Sammy12
11-24-2011, 11:16 PM
I was wondering whether a hex value (I feel as though it has more browser support than rgb) would be a safe fallback for rgba.



border: #222 1px solid;
border: rgba(0, 0, 0, .6) 1px solid;


What would be the benefits of using an rgb fallback?



A side question :D
What is your opinion on the future for hsla?

VIPStephan
11-25-2011, 12:21 AM
A flat color fallback is the best solution. But I would just change the border color, not add a complete border shortcut:


border: #222 1px solid;
border-color: rgba(0, 0, 0, .6);


I have not formed any opinion on HSLA yet. I’d be happy if RGBA support is decent in near future.

Sammy12
11-25-2011, 12:25 AM
Excellent! I never thought of that :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum