Online Training for Asp.net MVC Web Designing Development, MS SQL, Digital Marketing

Color CSS Style, CSS Tutorial


You need to play with color in webpage very often; Using CSS there are different ways to specify color for any HTML element.
  • Color using Hex Code
  • Color using RGB
  • Color using Name

Color using Hex Code Example

<style>
.splDiv
{
color: #000;
background-color: #dcdcdc;
}
</style>

Color using RGB Example

<style>
.splDiv
{
color:rgb(186,32,24);
background-color: rgb(255,255,255);
}
</style>

Color using Name Example

<style>
.splDiv
{
color: white;
background-color: red;
}
</style>



Comment
Name Email Website
Subscribe
 
Color CSS Style, CSS Tutorial

Group Training