Help:Coloring text: Difference between revisions

From Proteopedia
Jump to navigationJump to search
Eric Martz (talk | contribs)
No edit summary
Eric Martz (talk | contribs)
Line 78: Line 78:
You can color using CSS spans: &lt;span style="color:red;font-weight:bold;">Red&lt;/span>, which looks like this: <span style="color:red;font-weight:bold;">Red</span>. In addition to color names, you can use Red-Green-Blue [https://www.rapidtables.com/web/color/RGB_Color.html (RGB) hexadecimal codes] following "#", for example &lt;span style="color:#8000ff;font-weight:bold;">Purple&lt;/span> which looks like this: <span style="color:#8000ff;font-weight:bold;">'''Purple'''</span>.
You can color using CSS spans: &lt;span style="color:red;font-weight:bold;">Red&lt;/span>, which looks like this: <span style="color:red;font-weight:bold;">Red</span>. In addition to color names, you can use Red-Green-Blue [https://www.rapidtables.com/web/color/RGB_Color.html (RGB) hexadecimal codes] following "#", for example &lt;span style="color:#8000ff;font-weight:bold;">Purple&lt;/span> which looks like this: <span style="color:#8000ff;font-weight:bold;">'''Purple'''</span>.


Span style colors also work for light colors, using a colored background with black text: <span style="background-color:#00ff00;">Light green</span>.
Span style colors also work for light colors, using a colored background with black text: &lt;span style="background-color:#00ff00;padding-left:7px;padding-right:7px;">Yellow&lt;/span>. The "padding" makes the color extend slightly beyond the text, which looks better:<span style="background-color:#00ff00;padding-left:7px;padding-right:7px;">Yellow</span>.


==HTML Font Colors==
==HTML Font Colors==