Q&A Q1: | Don't web browsers let people choose their own background and text color preferences? | A1: | Yes, web browsers allow users to override the colors that you, as a web page author, specify. Some may see your white-on-blue page as green-on-white or their own favorite colors instead, but very few people actually use this option. The colors specified in the <body> tag will usually be seen. | Q2: | I've heard that there are 231 "browser-safe colors" that I should use on web pages, and that I shouldn't use any other colors. Is that true? | A2: | Here's the real story: There are 231 colors that will appear less "fuzzy" to people who operate their computers in a 256-color (8-bit) video mode. (The other 25 colors are used for menus and stuff like that.) Some web page authors try to stick to those colors. However, true-color or high-color computer displays are all but standard these days, and they show all colors with equal clarity. So if your graphics program can display color values in hexadecimal format, feel free to plug those codes straight into your pages for custom colors. In other words, we're pretty much past the era of having to worry about "browser-safe colors." | Q3: | My background image looks okay in my graphics editing program, but has weird white or colored gaps or dots in it when it comes up behind a web page. Why? | A3: | There are two possibilities: If the background image you're using is a GIF file, it probably has transparency turned on, which makes one of the colors in the image turn white (or whatever color you specified in the background-color style property). The solution is to open the file with your graphics program and turn off the transparency. (In Paint Shop Pro, select Image, Palette, Set Palette Transparency, and pick No Transparency.) Resave the file. If a JPEG or nontransparent GIF or PNG image looks spotty when you put it on a web page, it may just be the web browser's dithering. That's the method the software uses to try to show more colors than your system is set up to display at once by mixing colored dots together side-by-side. There's not much you can do about it, though you'll find hints for minimizing the problem back in Hour 7. | |