CSS - RGB Color Definition

> (World Wide) Web - (W3|WWW) > CSS - Cascading Style Sheets - Markup Language (HTML|XML) Skin

1 - About

RGB model implementation in CSS

Advertising

3 - Syntax

rbg(Red Intensity, Green Intensity, Blue Intensity)
#RRGGBB

4 - Example

<table class="table table-striped">
<tbody>
<tr>
           <th>Color</th>
           <th>RGB Numeric</th>
           <th>RGB Hexadecimal</th>
           <th>Color</th>    
</tr>
<tr>
           <td style="background-color:rgb(255,0,0)"/>
           <td>rgb(255,0,0)</td>
           <td>#FF0000</td>
           <td>Red</td>
</tr>
<tr>
           <td style="background-color:rgb(0,255,0)"/>
           <td>rgb(0,255,0)</td>
           <td>#00FF00</td>
           <td>Green</td>
</tr>
<tr>
           <td style="background-color:rgb(0,0,255)"/>
           <td>rgb(0,0,255)</td>
           <td>#0000FF</td>
           <td>Blue</td>
</tr>
<tr>
           <td style="background-color:rgb(255,255,255)"/>
           <td>rgb(255,255,255)</td>
           <td>#FFFFFF</td>
           <td>White</td>
</tr>
<tr>
           <td style="background-color:rgb(125,125,125)"/>
           <td>rgb(125,125,125)</td>
           <td>#808080</td>
           <td>Gray</td>
</tr>
<tr>
           <td style="background-color:rgb(0,0,0)"/>
           <td>rgb(0,0,0)</td>
           <td>#000000</td>
           <td>Black</td>
</tr>
</tbody>
</table>

web/css/rgb.txt ยท Last modified: 2019/02/09 11:40 by gerardnico