I can't get the background color to work in the HTML editor. I'm able to change the font, size, and even the text color . . . but the background color never comes out (ie - appears). I've played around with directly editing the html, but it's as though it does not save the tags correctly.
1. After selecting text and choosing a bright green background, the html editor shows:
<span style="background-color: rgb(102, 255, 0);">*NOTE: You need Adobe Flash Player to view the demo.</span>
2. So I hit SAVE. But then after reloading the post the color doesn't appear.
3. I go back into edit the post, take a peek at the code, and the entire tag is gone:
<span>*NOTE: You need Adobe Flash Player to view the demo.</span>
Any ideas? This only started since I upgraded to 1.9.2
I recall considering turning it on, but the "resource intensive" warning drew me away. At the moment, things seem to be running smoothly and quickly... so hopefully all is well.
I am unable to change the background either. I am wondering if I have administration rights. There is no "Miscellaneous" in my menu in the administration block.
Here is my page:
To Mary Cooch,
I think I am in the same situation as Mary. I am the administrator for just one course on the Moodle platform at the institution where I work. Do you mean that because I am not the administrator of the whole platform I won't be able to change the background at all for my course?
Another solution is to expand the editor, use 'table cells' for text and use table properties to set colours.
Any other suggestions for modifying the background color? Thanks in advance!
Michael, what version of moodle is it? I though this was fixed last December
and all my test sites allow changing of background...testing:
*NOTE: This background should be green.
I was attempting to use the same code I used in Dreamweaver for a background color option (bgcolor=#xxxxxx) within the body tag. This was not working, so I switched to style="background-color: rgb(xxx, xxx, xxx);" which seems to work on everything so far.
Thanks for the response!
But...bgcolor=#xxxxxx can be used only in body tag. The bgcolor attribute specifies the background color of a document.
The background-color property sets the background color of an element.
You can use
color_name Specifies the background color with a color name, like red
hex_number Specifies the background color with a hex code, like #ff0000
rgb_number Specifies the background color with an RGB code, like rgb(255,0,0)
red - #ff0000 - rgb(255,0,0)
Code: <span style="background-color: red">red</span> - <span style="background-color: #ff0000">#ff0000</span> - <span style="background-color: rgb(255,0,0)">rgb(255,0,0)</span>