williamrouse Posted March 6, 2009 Report Share Posted March 6, 2009 How is a 3 digit HEX number interpreted as a color value in this example? background: #fff Do browsers double up each digit? Thanks! Quote Link to comment Share on other sites More sharing options...
jlhaslip Posted March 6, 2009 Report Share Posted March 6, 2009 Yes. When you use a 3-digit number, the Browser repeats them to create the triple-pairs. Quote Link to comment Share on other sites More sharing options...
williamrouse Posted March 6, 2009 Author Report Share Posted March 6, 2009 Thanks! Quote Link to comment Share on other sites More sharing options...
LSW Posted March 6, 2009 Report Share Posted March 6, 2009 Just keep in mind it only works with double digits sets: #ffffff = #fff #ffcccc = #fcc #008f53 cannot be shortened Quote Link to comment Share on other sites More sharing options...
williamrouse Posted March 6, 2009 Author Report Share Posted March 6, 2009 Yeah, now that you show me, of course. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.