php - Simple Color Variation -
I am creating a UI in which the user has the ability to change the color values of their pages. What do I want to take the value assigned to their background color and make it lighten a certain amount? I am trying to get only a highlights line without creating new images at all times.
Example: Users Sets the background color to #ECECEC Now I have to create a certain element limit # F4F4F4 (one color to white).
Please tell me whether this is a good way to do this with JavaScript, PHP, or even jQuery.
This will have a white border of 70% opacity Unfortunately, it is supported in Firefox 2, Opera 9 or any version of IE is not. It will not be difficult to make alternative versions for these browsers. Example of jQuery:
$ ('body'). Append ('& lt; div id = "rgbatest" style = "color: rgba (0,0,0,0,0); condition: absolute (' $ '(' # rgbatest ') .css (' color ') Match (/ ^ RGBA /)) {$ ('(' no-rgba ');} $ (' # rgbatest '). Remove ();
From here, you Override RGBA color can use no-rgba class.
#thisDiv {boundary: 1 px solid RGBA (255,255,255,0.7)} .no-rgba #thisDiv {border: 1 px solid #FFF}
Comments
Post a Comment