CSS Colors

A PHP Error was encountered

Severity: Warning

Message: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.

Filename: blog/post_details.php

Line Number: 38

Backtrace:

File: /home/solutio1/public_html/application/views/blog/post_details.php
Line: 38
Function: strtotime

File: /home/solutio1/public_html/application/controllers/Blog.php
Line: 14
Function: view

File: /home/solutio1/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone.

Filename: blog/post_details.php

Line Number: 38

Backtrace:

File: /home/solutio1/public_html/application/views/blog/post_details.php
Line: 38
Function: date

File: /home/solutio1/public_html/application/controllers/Blog.php
Line: 14
Function: view

File: /home/solutio1/public_html/index.php
Line: 315
Function: require_once

2019-09-22
Rahul Swami Download Code

CSS uses different values to specify a color. Color values are specified using predefined color names.

CSS Text Color

The following example shows how to set the color to the text.

 <h1 style="color:Orange;">Colors</h1>
<p style="color:Gray;">Gray color</p>
<p style="color:Orange;">Orange color</p> 
<p style="color:Tomato;">Tomato color</p>
<p style="color:SlateBlue;">SlateBlue color</p> 
<p style="color:Violet;">Violet color</p>
<p style="color:LightGray;">LightGray color</p> 
<p style="color:DodgerBlue;">DodgerBlue color</p>
<p style="color:MediumSeaGreen;">MediumSeaGreen color</p> 

CSS Background Color

The following example shows how to set the background color to the text.

CSS Color Values

Colors are specified using RGB, HEX, HSL, RGBA, HSLA values.

 <h1 style="background-color:rgb(255, 99, 71);">SolutionsTouch</h1>
<h1 style="background-color:#ff6347;">SolutionsTouch</h1>
<h1 style="background-color:hsl(9, 100%, 64%);">SolutionsTouch</h1>
<h1 style="background-color:rgba(255, 99, 71, 0.5);">SolutionsTouch</h1>
<h1 style="background-color:hsla(9, 100%, 64%, 0.5);">SolutionsTouch</h1>

CSS Border Color

you can set the color border to the element.

<h1 style="border:2px solid DodgerBlue;">SolutionsTouch</h1>
<h1 style="border:2px solid Violet;">SolutionsTouch</h1> 
<h1 style="border:2px solid Tomato;">SolutionsTouch</h1>


About author

Card image cap
Rahul Swami

Experienced in providing key insights with advanced statistical methods, data modeling, and graphical display, utilizing the software that best suits your needs, with advanced skill in R.!

-R Developer

0 Comments