Template:Backgroundcolor: Difference between revisions
Jump to navigation
Jump to search
*>Monkey 05 06 (New page: <includeonly><span style = "background-color: {{{1|transparent}}};">{{{2|}}}</span></includeonly><noinclude>Sets the background color for an area. Takes a CSS color value (HEX or rgb funct...) |
*>Monkey 05 06 No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><span style = "background-color: {{{1|transparent}}};">{{{2|}}}</span></includeonly><noinclude>Sets the background color for an area. Takes a CSS color value (HEX or rgb function) as the first parameter and the content as the second. | <includeonly><span style = "background-color: {{{1|transparent}}};">{{{2|}}}</span></includeonly><noinclude>Sets the background color for an area. Takes a [http://www.w3schools.com/Css/css_text.asp CSS color value] (#HEX value, CSS color name, or rgb function) as the first parameter and the content as the second. | ||
<nowiki>{{backgroundcolor|rgb(221,255,221)|This text is on a green background.}}</nowiki> | <nowiki>{{backgroundcolor|rgb(221,255,221)|This text is on a green background.}}</nowiki> | ||
Line 6: | Line 6: | ||
{{backgroundcolor|rgb(221,255,221)|This text is on a green background.}} | {{backgroundcolor|rgb(221,255,221)|This text is on a green background.}} | ||
''See Also:'' [[:Template:Textcolor]] | |||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Latest revision as of 15:59, 23 June 2009
Sets the background color for an area. Takes a CSS color value (#HEX value, CSS color name, or rgb function) as the first parameter and the content as the second.
{{backgroundcolor|rgb(221,255,221)|This text is on a green background.}}
Gives us this:
This text is on a green background.
See Also: Template:Textcolor