![]() ![]() ![]() |
In HomeSite, you can add color to your Web pages using color attributes in a range of tags, including the BODY, FONT, HR, and the TABLE tags. For example, to set a document's background color to aqua and the text color to purple you can use the following attributes in the BODY tag:
<BODY BGCOLOR="Aqua" TEXT="Purple">
When adding color to your Web site, you need to balance design concerns with the vagaries of users' browsers and display systems.
In HTML, you can specify Web colors either by name or by hexadecimal values. For the BODY tag shown above, you can also use the hexadecimal equivalents for the color names aqua and purple:
<BODY BGCOLOR="#00FFFF" TEXT="#800080">
Some named colors are not read by all browsers. To make HomeSite always use hexadecimal values for all colors, use the Tags settings in the General pane of the Settings dialog box (F8).
This section explains how to add color to your Web pages. To set colors for tag coding, open Options > Settings > Color Coding tab.
For the set of HTML tags that support color, you can add colors using tag tools, the Tag Insight popup menus, tag editors, and the color palettes. This section shows you how to set color values for new documents using dialog boxes as well as for existing tags or tags you edit with popup menus.
Or, choose Custom in the Background Color menu to open the Color dialog box. See the procedure, To use the Color dialog box to define a custom color, for information on custom colors.
If the Tag Insight menu doesn't appear, open the Options > Settings dialog box, and in the Tag Help pane, make sure the Tag Insight box is checked. Click OK and repeat step 1.
For tags that support background and border colors, such the TABLE tags and the FRAMESET tag, you can use the Tag Inspector to add color to the BGCOLOR and BORDERCOLOR attributes.
You can also use the Tag Inspector to set named and custom colors for these tags. See Editing Web Pages for instructions on using the Tag Inspector to edit HTML tags.
You can refine your color selections by using the Custom Color palette. This offers a broader choice of colors, but you can't be sure that all users will be able to see custom colors in their browsers.
While some monitors can display millions of colors, for most Web pages it's best to stick to the palette of browser-safe colors that are interpreted correctly in most browsers and platforms. HomeSite uses a browser-safe color palette (the Safety Palette) as the default palette for all HomeSite documents.
For more information on identifying and using Web-safe colors see Lynda Weinman's site on Web colors, http://www.lynda.com/hex.html.
HomeSite provides six color palettes, which offer collections of named colors, browser safe colors, and several sets of standard Windows colors. You show and hide palettes using the Palette tool on the Tools toolbar.
You can create and edit your own custom color palettes, using a color picker to choose colors visually, or by entering RGB or hexadecimal color values.
You can use the color picker in the Color dialog box to add colors from other applications. Arrange your desktop to display the application windows, then open the Palette dialog and drag the color picker to the color you want. Release the mouse button and click Add.
Now the palette you imported from PaintShop Pro displays in the Options menu on HomeSite's Color Palette.
![]() ![]() ![]() |
AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.