Sunday, 12 August 2012

css color property tutorial


Introduction of Css Color property


css color property is used to change foreground-color of html text.
  Syntex :
    selector
    {
      color :color-name or color-value;
    }
 
color value can be in following way
  1. Direct color-name : We can use direct color name(red,green).
        Syntex :
        selector
        {
          color :red;
        }
        
  2. Using Hash value :We can use hash value(#aabbcc)
        Syntex :
        selector
        {
          color :#aabbcc;
        }
        
  3. Using RGB combination : We can built color using rgb cobmination
        Syntex :
        selector
        {
          color :rgb(10,20,30);
        }
        
  4. Example
        Syntex :
        selector
        {
          color :red;
        }
        
    Click to practice online example

No comments:

Post a Comment