RGBA - color definitions with opacity


/ Published in: CSS
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /*
  2.  * modern browsers (except ie) understand the css3
  3.  * rgba property. it works like the rgb property and
  4.  * adds an aditional parameter a for opacity
  5.  *
  6.  */
  7.  
  8. p{
  9. color: rgb(127, 127, 127);
  10. }
  11. p{
  12. color: rgba(0, 0, 0, 0.5);
  13. }

URL: http://24ways.org/2009/working-with-rgba-colour

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.