Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I edited this style sheet:

Cell[StyleData["Text"], FontSize -> 20, FontWeight -> "Bold", 
  FontColor -> RGBColor[255, 255, 255], FontFamily -> "Courier New"]

but nothing happens. Is there anything wrong with this piece of code?

share|improve this question

closed as off-topic by Mike Honeychurch, rasher, bobthechemist, m_goldberg, ubpdqn Mar 22 at 3:37

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – m_goldberg, ubpdqn
  • "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Mike Honeychurch, rasher, bobthechemist
If this question can be reworded to fit the rules in the help center, please edit the question.

2  
Please explain further what you did. What you show is not a style sheet but rather what would go into the expression for a Text cell. Did you use Option Inspector? If so, did you select Global Preferences, Selected Notebook, or Selection as the object of the change? –  murray Mar 21 at 14:56

1 Answer 1

You ask: "Is there anything wrong with this piece of code?" The answer is: "Yes".

 RGBColor[255, 255, 255]

will give white, which will not be visible with a white background. Further, Mathematica encodes color channels in the range 0. to 1., clipping anything over 1. to that value. Please read RGBColor, especially the 2nd bullet point under Details.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.