• Post Reply Bookmark Topic Watch Topic
  • New Topic

How do you change the color of the numbers in my FizzBuzz app?  RSS feed

 
Bobby Morrison
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello world,

Been working on this FizzBuzz app today.

I am having problems changing the color of the numbers that appear whilst the game is in play.

I would like to change it from black to white.



If anyone can help, I would be very grateful.

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65964
140
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried changing the color values?

I'd also use a more modern approach using CSS rather than relying on the old-fashioned string wrapper methods.
 
Bobby Morrison
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've played around a little with my stylesheet, yet no luck.

 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65964
140
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's "main-output"? -- it appears nowhere in your code.

Should you not be applying the CSS directly to the output element? And if you are going to be using CSS, you shouldn't be applying colors in code.
 
Bobby Morrison
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll post everything I have so far.

The code might make a bit more sense.

HTML


CSS


JAVASCRIPT


Hope this helps.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!