CSS color names in languages other than english

  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13503
  • Loc: Florida

Post 3+ Months Ago

Consider this markup,
Code: [ Select ]
<div style="color: red;">Red</div>


Would "red" be the same in say, Spanish, Greek, Italian, or German ?

Would I need to translate "red" to say, "rojo" in Spanish ?
Code: [ Select ]
<div style="color: rojo;">Rojo</div>


I'm wondering if it would be better to stay away from CSS color names & only use the hexadecimals "#f00" for somthing that will be translated into multiple languages. :scratchhead:
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

I'm forced to use American English in my css - and this extends to names of colours too (oops, color). So for grey I have to write gray (if i was using colour names, that is). So I'd imagine it would be the same for non-English too.

Non-English folks use English in their css.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 37 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.