CSS, Browsers, and Colors (Oh my!)

liunx

Guest
Ok, so I've been using CSS basically since I started using this message board. Thanks to places like CSS Zen Garden (<!-- m --><a class="postlink" href="http://www.csszengarden.com/">http://www.csszengarden.com/</a><!-- m -->), I've seen the light and use CSS constantly. But now I have a question concerning CSS and colors.

How widely supported is CSS? (CSS1 that is, I know about issues with CSS2) Basically, I've started work on a website for this group I belong to, and was wondering if I could use a style sheet to exclusively hold the colors? IE:

<p><font color="#ff0000">This is a red paragraph</font></p>

replaced by

<p id="red">This is a red paragraph.</p>

And so forth with background color and everything. Will I get a great majority (by great majority, I'm hoping for 90 plus percent??) who will get it to work as it should, or should I stick to inserting color elements everywhere? Normally I wouldn't bother, but this will be an official group website and all and I want to make it look as such.Yes you can use a style sheet just to hold colors.No, no I KNOW I can do that, my question is (sorry If it wasn't clear). If I put all of my colors JUST in a style sheet, how many people would be able to see it? Basically, what percentage of web surfers use browsers that support CSS?Well put it this way, 95% of the web use IE 5/6 (<!-- m --><a class="postlink" href="http://www.thecounter.com/stats/2004/March/browser.php">http://www.thecounter.com/stats/2004/March/browser.php</a><!-- m -->), but have you ever seen an option in IE to disable styles?True, but it's also said (many times) that 13% DON'T support JavaScript. These statistics never agree with one another. I guess if IE 4.x and higher, NN 4.x, Opera, and Mozilla at least support it, I should have no qualms then. I'm convinced then. Anywho, for anyone using a browser that DOESN'T support CSS, it's time for a real browser. (<!-- m --><a class="postlink" href="http://www.mozilla.org">http://www.mozilla.org</a><!-- m -->)

Thank you kindly.It seems that the 13% figure (<!-- m --><a class="postlink" href="http://www.thecounter.com/stats/2004/March/javas.php">http://www.thecounter.com/stats/2004/March/javas.php</a><!-- m -->) has shrunk somewhat. All the same, there's still no excuse for developing a JavaScript only site.

There are some people who can't enable CSS or JavaScript such as those with screen readers and braille displays.True, but I guess I'll just do what I always do, make sure all the content is readable without CSS for those who don't support. Anywho, thanks for the figures. Off a CSS scripting I go...people with screen readers usually don't care about colorsI was just curious about something, you know them new-fangled internet browsers on cell phones? I have yet to see one, but does anyone know what thems support, anyhow? Just curious, is all.Originally posted by MstrBob
I was just curious about something, you know them new-fangled internet browsers on cell phones? I have yet to see one, but does anyone know what thems support, anyhow? Just curious, is all.

I'm not 100% sure, so I maybe showing my ignorance(not the first time either), but I think you could create CSS specifically for that type of "browser." I think it's looking into things like different types of media like screen and whatnot.

Currently the only broswers that really screw up CSS, relatively speaking, is fourth generation ones, and those are in use of less than one percent. Unless somebody told me that I needed to design a site specifically for NN4 than I wouldn't. In my own personal stuff, I use whatever I can think of. Not to say I don't have to work around some quirks, I do all the time, but I don't really think about what it would look like in "old" browsers. My sites don't really push the envelope either, so that's another reason I don't sweat lack of CSS support either.
 
Back
Top