|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Microsoft FrontPageTo use FrontPages style sheet functions, you need to work in the FrontPage Editorthe FrontPage component used to create Web documents. In the FrontPage Editor, choosing Format, Stylesheet will reveal the Format Stylesheet dialog box you see in Figure 9.5. As you see in the figure, FrontPage assumes youre embedding your style information in the document head when you choose this option, as evidenced by the <STYLE> and </STYLE> tags you see in the dialog box.
You can type the style information you want to apply directly into the dialog box, or you can click the Style button near the bottom left to open up the Style dialog box into which you can enter the information. Figure 9.6 shows you the Alignment tab of this dialog box, which enables you to specify values for margins, padding, and floating properties. Other tabs include
When youre done setting up the style information, click the OK button to apply the styles. Depending on what characteristics youve specified, you may not see any effect on the FrontPage Editors Normal tab. To make sure that your style information was properly built into the source code of the document, click the HTML tab to look at the raw code. You should see your style information contained in the document head.
FrontPage can also help you if you want to place style information in a separate file, or if you want to use inline styles. If you need to create a separate style sheet file, you can still use the dialog boxes you see in Figures 9.5 and 9.6 to set up the style information. Then, after the style specifications are written into the document, you can copy and paste them to a blank document and then save the document as a text file with a .css extension. If you plan to use inline styles, youll find that many dialog boxes that insert tags have a Style button in them. Clicking the Style button will call up a dialog box much like the one you see in Figure 9.6, enabling you to specify the style information you want to associate with that instance of the tag.
Allaire HomeSiteAnother software package that can help you with the incorporation of style information is Allaires HomeSite. HomeSite is not a WYSIWYG editor like the FrontPage Editor. Rather, it is focused on the composition of the raw HTML source code. HomeSite has particularly good support for defining inline styles. When you have HomeSites What-You-See-Is-What-You-Need (WYSIWYN) feature active and your cursor placed inside of a tag, the program will display a context-sensitive list of attributes that are appropriate to the tag (see Figure 9.7). HomeSite knows that the STYLE attribute is available for most HTML tags, and youll typically find STYLE listed among the acceptable attributes in the context-sensitive list. After youve placed the STYLE attribute, HomeSite can take you a step further by helping you to specify the style properties. When your cursor is between the quotation marks of the STYLE= attribute, the WYSIWYN feature kicks in again and gives you the option to define an inline style (see Figure 9.8). Selecting this option launches HomeSites Inline Style dialog box (see Figure 9.9). The dialog box has four tabsFont, Text, Margins, and Positionwhere you can assign specific values to the properties grouped under the tab. You also get a small preview window in the dialog box and a button that will enable you to see the style sheet in an external browser.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |