Advertisement
Lafarin

Colour Opacity HTML

Jun 19th, 2020
2,827
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. <!------
  2. Comment on the comment page if you use or decide to use this
  3. For THIS code only- You don't need to credit me - it's not a template but a basic property anyway!
  4. Since this is quite universal, there are no rules for it but it'd be a total rip-off if you sell/trade it.
  5. ------->
  6.  
  7. <!------
  8.  
  9. Brace yourself, here comes the code below vvvv
  10.  
  11. rgba(#,#,#,#)
  12.  
  13. ^^^ Yup! Just that!
  14.  
  15. - put this instead of the hex value after any colour property// Example: style="font-colour:rgba(222, 165, 0, 0.3)"
  16. - The first value is of the red, second is of the green, third is of the blue. Last is the Alpha value (opacity)
  17. - Max value of the first 3 is 255. All 255 = white / All 0 = black
  18. - For the Alpha value, it's between 0.0 and 1.0 /// 0.0 is fully transparent and 1.0 is fully opaque
  19. - You can convert HEX to RGB Colour by simply googling it like "#fc0303 to rgb" or just search "colour picker" on google
  20.  
  21. ---------->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement