go to  ForumEasy.com   
CSS + jQuery
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  CSS Color
 
Subject: CSS Color
Author: CyberSpider
Posted on: 04/13/2016 11:02:46 PM

CSS color property is used to specify certain color unto the front face or the background with values:

  • <named color> -- red, green, blue;
  • #<3-hexadecimal digits> -- #F00, #0F0, #00F;
  • #<6-hexadecimal digits> -- #FF0000, #00FF00, #0000FF; (case-insensitive)
  • rgb(0-255, 0-255, 0-255) -- rgb(255,0,0), rgb(0,255,0), rgb(0,0,255);
  • rgba(0-255, 0-255, 0-255, 0.0-1.0) -- rgba(255,0,0,0), rgba(255,0,0,1);
  • hsla(0-360, 0-100%, 0-100%, 0.0-1.0) -- hsla(0,70%,90%,0), hsla(0,70%,90%,0.8);

    For example:
        p {
            /* front face */
            color: rgb(255,0,0);
            /* background */
            background-color: lightblue;
        }
    


    Try it yourself in sandbox »




    References:

  •  


     
    Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
     
    Get your own forum today. It's easy and free.