Welcome to collectivesolver - Programming & Software Q&A. A website you can trust. All programs tested and works. Contact: aviboots(AT)netvision.net.il
Hostgator 1 Penny

BlueHost Web Hosting

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

Ecommerce Software - Best Ecommerce Platform Made for You - Free Trial

getflywheel wordpress hosting


Distribute your Resume to 500+ Job Boards & Recruiters


7,376 questions

10,377 answers

573 users

How to use CSS RGB Colors

3 Answers

0 votes
<!DOCTYPE html>
<html>
<head>
<style>
/* rgb(red, green, blue) */
/* the color is a number between 0 and 255 */

#p1 {background-color:rgb(255,0,0);}
#p2 {background-color:rgb(0,255,0);}
#p3 {background-color:rgb(0,0,255);}
</style>
</head>

<body>
<p>RGB colors:</p>
<p id="p1">Red</p>
<p id="p2">Green</p>
<p id="p3">Blue</p>
</body>
</html>

 




answered Dec 29, 2015 by avibootz
edited Dec 29, 2015 by avibootz
0 votes
<!DOCTYPE html>
<html>
<head>
<style>
/* rgb(red, green, blue) */
/* the color is a number between 0 and 255 */

#p1 {background-color:rgb(255,255,0);}
#p2 {background-color:rgb(192,192,192);}
</style>
</head>

<body>
<p>RGB colors:</p>
<p id="p1">Yellow</p>
<p id="p2">Grey</p>
</body>
</html>

 




answered Dec 29, 2015 by avibootz
0 votes
<!DOCTYPE html>
<html>
<head>
<style>
/* rgb(red, green, blue) */
/* the color is a number between 0% and 100% */
 
#p1 {background-color:rgb(100%, 0%, 0%);}
#p2 {background-color:rgb(0%, 100%, 0%);}
#p3 {background-color:rgb(0%, 0%, 100%);}
</style>
</head>
 
<body>
<p>RGB colors:</p>
<p id="p1">Red</p>
<p id="p2">Green</p>
<p id="p3">Blue</p>
</body>
</html>

 




answered Dec 29, 2015 by avibootz
...