+ 6

How to use RGB?

How to use rgb on css?

24th Dec 2021, 1:22 PM
SchooLearner
SchooLearner - avatar
6 Réponses
+ 2
The rgb function allows you to pass in parameters that determine the intensity of red, green, and blue. Simply set your color related property to "rgb(r, g, b)". The maximum intensity for each of these parameters is 255. This example will set your page's background color to red: body{ background-color: rgb(255, 0, 0); }
24th Dec 2021, 1:27 PM
skaltecho
+ 5
How to use RGB on css??
24th Dec 2021, 1:23 PM
SchooLearner
SchooLearner - avatar
+ 3
Thanks..!!
24th Dec 2021, 1:30 PM
SchooLearner
SchooLearner - avatar
+ 1
it's easier to use hex for everything color. it's also easier to find the perfect color online and it's pretty easy to understand. As per your bg, it looks bad, like when you accdentally ctrl+A a webpage. Simple fix, google another color for your bg, something like #965D88, or #88965D, or even #5D966C. All are ternary colors for the most part. Short answer: blue text on blue bg doesn't work.
24th Dec 2021, 4:39 PM
Thr3at
24th Dec 2021, 1:45 PM
SchooLearner
SchooLearner - avatar
0
Like this?? Gray bg and cyan text??
25th Dec 2021, 3:38 AM
SchooLearner
SchooLearner - avatar