# Rgb color definition in CSS

**URL:** <https://forum.code.org/t/rgb-color-definition-in-css/35851>\
**Category:** Coding and Debugging Help\
**Created:** [February 11, 2022, 1:18am UTC](https://forum.code.org/t/rgb-color-definition-in-css/35851 "2022-02-11T01:18:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koliner](https://avatars.discourse-cdn.com/v4/letter/k/f04885/32.png) [@koliner](https://forum.code.org/u/koliner)\
**Post date:** [February 11, 2022, 1:18am UTC](https://forum.code.org/t/rgb-color-definition-in-css/35851/1 "2022-02-11T01:18:37Z")

</div>

Teaching myself here to teach the students:  
I expected that the body background would be red  
It did not change  
[https://codeprojects.org/o5ZM6Q60-yNTn1rkohQ-aI56XPZFMKtgXoUGDafY9Ns](https://codeprojects.org/o5ZM6Q60-yNTn1rkohQ-aI56XPZFMKtgXoUGDafY9Ns)  
Thank you!

---

<div class="post-metadata">

**Author:** ![mwood](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/mwood/32/4941_2.png) [@mwood](https://forum.code.org/u/mwood)\
**Post date:** [February 11, 2022, 4:53am UTC](https://forum.code.org/t/rgb-color-definition-in-css/35851/2 "2022-02-11T04:53:51Z")

</div>

@koliner,

You have an extra space between the rgb and the parenthesis. Delete that space and it should work. With a space, it treats the statement like it has two values, rgb and (255,0,0). It can’t interpret either value, so it does nothing.

Mike
