TCH-Thomas Posted June 8, 2004 Posted June 8, 2004 (edited) A long time ago, i read that you can for instance type this in css: ><hr style="color: #fff; width: 75%; height: 1px;" /> How can a browser know that is supposed to be same as ffffff and not FFFFCC or FFFF99 and so on? Edited June 8, 2004 by Jikrantz Quote
borfast Posted June 8, 2004 Posted June 8, 2004 Thomas, in CSS you can write hex color references in one of two ways: 1 - by writing all 6 hexadecimal digits or 2 - by writing only the first digit of each pair. What happens is that if you use the short form #abc, the browser's CSS interpreter will duplicate each digit, resulting in #aabbcc Quote
TCH-Thomas Posted June 8, 2004 Author Posted June 8, 2004 So ffc is same as ffffcc, ddd = dddddd and eee = eeeeee ? Quote
DCS Posted June 8, 2004 Posted June 8, 2004 Woohoo, less typing for Thomas. LOL, you always learn something new in the TCH Forums . Quote
borfast Posted June 8, 2004 Posted June 8, 2004 And Thomes, check this out: Less typing means less characters. Less characters means your files are smaller. Your files being smaller mean faster transfer times for your site visitors and less bandwidth taken from your account! How's that for coolness? Thumbs Up Quote
DCS Posted June 9, 2004 Posted June 9, 2004 And Thomes, check this out:Less typing means less characters. Less characters means your files are smaller. Your files being smaller mean faster transfer times for your site visitors and less bandwidth taken from your account! How's that for coolness? Thumbs Up Wow, Raul. I never realized that, that is cool! Quote
DarqFlare Posted June 9, 2004 Posted June 9, 2004 Yup yup. The cool things about CSS! Though, do take note that there may perhaps be some clunky browser that can't figure out to expand out the CSS... Quote
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.