Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Remember grey!=gray in IE CSS!

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU
 
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Aug-07-06 12:45 PM
Original message
Remember grey!=gray in IE CSS!
Though it does in firefox!
Just spent an hour on that one before I realized I spell it the british way.
:eyes:
Refresh | 0 Recommendations Printer Friendly | Permalink | Reply | Top
charlie Donating Member (1000+ posts) Send PM | Profile | Ignore Mon Aug-07-06 01:37 PM
Response to Original message
1. Netscape browsers
have long recognized both spellings, while MS insisted on the Americanized version. I guess Mozilla decided to continue the legacy with its browsers.

However...

To keep everyone mindful of the MS Way, consistency be damned, IE has never recognized "lightgray." No, for a lighter shade of gray, you must use "lightgrey." Moz-based browsers, natch, will handle both.
Printer Friendly | Permalink | Reply | Top
 
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Wed Aug-09-06 07:45 AM
Response to Reply #1
2. That's weird!
I was not aware of that. Not that I'm suprised either. I think I'm just going to go back to the old base 16 rgb method.
Printer Friendly | Permalink | Reply | Top
 
crikkett Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Sep-05-06 07:45 PM
Response to Original message
3. remember gray = grey = #333333, #cccccc etc all 6 hex #s the same
Basically, all 6 hex numbers need to be the same in order to accomplish a shade of grey/gray.

Monitors interpret colors as combinations of Red Green and Blue. The hex #s define colors like this: # RR GG BB. In CSS you can abbreviate to #RGB for some colors (all web-safe colors can be abbrev. this way I think).

So if #000 (or #000000) is black and #fff (#ffffff) is white, then the numbers get lighter as you go up the scale:
#000
#333
#666
#999
#ccc
#fff

You can also use values like #DDD and #111 ... a hex digit can be assigned a value of 0-9, and a-f. But 0,3,6,9,c,f are web-safe values (web-safe means the 256 colors that all browsers/monitors render a consistent color and don't substitute some scary taupe or teal on monitors using only few colors.)

I hope this explains things a little.
Printer Friendly | Permalink | Reply | Top
 
crikkett Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Sep-05-06 07:47 PM
Response to Reply #3
4. BTW hex here means "hexidecimal"
although at times I think it's magic :)
Printer Friendly | Permalink | Reply | Top
 
mainegreen Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Sep-05-06 08:25 PM
Response to Reply #3
5. Yeah, I'm going back to that method.
I thought 'gee, it might be nice to actually use the color spellings for css since they provide it'. Silly me.
I still have yet to get in the habit of using the full #000 or whatever shorthand. I still feel the urge to do the full #000000.
:shrug:
Printer Friendly | Permalink | Reply | Top
 
crikkett Donating Member (1000+ posts) Send PM | Profile | Ignore Tue Sep-05-06 08:29 PM
Response to Reply #5
6. Hey, I have a good friend in Maine.
Makes you ALL look good. :)
Cheers, good luck on your site.
-Crikkett (CA)
Printer Friendly | Permalink | Reply | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Thu Jan 02nd 2025, 11:33 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » DU Groups » Computers & Internet » Website, DB, & Software Developers Group Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC