|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
|
| Recommended Links | Recommended Links |
Style sheets can be applied to a web page in three ways:
Styles are often used in FrontPage and Word to format text and paragraphs. It's not easy to use them to format words and parts of sentences.
Edit an External Style Sheet
For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
To create an external style sheet, follow these steps:
| 1. | In FrontPage, create a FrontPage web named "Style" (without the quotation marks). |
| 2. | On the View menu, click Page. |
| 3. | On the File menu, point to New, and then click Page. |
| 4. | Click the Style Sheets
tab, click the Normal Style Sheet, and
then click OK. FrontPage will create a new style sheet page with a .css file name extension and open it for editing in the Page View. NOTE: If you select a style sheet other than the Normal Style Sheet, FrontPage opens a pre-made or custom style sheet (example: the Downtown style sheet). |
| 5. | Type the following:
|
| 6. | On the File menu, click Save. Select the location you want to save. In the File Name box, type: External.css, and then click OK. |
| 7. | Create a new page in FrontPage. |
| 8. | On the Format menu, click Style Sheet Links. |
| 9. | In the Link Style Sheet dialog box, click Add. |
| 10. | Click to select the External.css file from the list, and then click OK. |
| 11. | Click OK again. |
| 12. | Save the page. |
HOW TO Create Cascading Style Sheets in FrontPage 2000
This article describes how to create external and embedded cascading style
sheets (CSS).
Microsoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied
warranties of merchantability and/or fitness for a particular purpose. This
article assumes that you are familiar with the programming language being
demonstrated and the tools used to create and debug procedures. Microsoft
support professionals can help explain the functionality of a particular
procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have
limited programming experience, you may want to contact a Microsoft Certified
Partner or the Microsoft fee-based consulting line at (800) 936-5200. For more
information about Microsoft Certified Partners, please visit the following
Microsoft Web site:
For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
NOTES
| • | To use the full functionality of cascading style sheets, you need a browser that can support them, such as Microsoft Internet Explorer version 4.0 or later. |
| • | Some browsers only support certain aspects of cascading style sheets. |
| • | Your results may differ, depending on the browser you are using. |
| • | Do not use themes for this demonstration, or the examples will not work properly. |
To create an external style sheet, follow these steps:
| 1. | In FrontPage, create a FrontPage web named "Style" (without the quotation marks). |
| 2. | On the View menu, click Page. |
| 3. | On the File menu, point to New, and then click Page. |
| 4. | Click the Style Sheets tab, click the Normal
Style Sheet, and then click OK. FrontPage will create a new style sheet page with a .css file name extension and open it for editing in the Page View. NOTE: If you select a style sheet other than the Normal Style Sheet, FrontPage opens a pre-made or custom style sheet (example: the Downtown style sheet). |
| 5. | Type the following:
|
| 6. | On the File menu, click Save. Select the location you want to save. In the File Name box, type: External.css, and then click OK. |
| 7. | Create a new page in FrontPage. |
| 8. | On the Format menu, click Style Sheet Links. |
| 9. | In the Link Style Sheet dialog box, click Add. |
| 10. | Click to select the External.css file from the list, and then click OK. |
| 11. | Click OK again. |
| 12. | Save the page. |
FP98 How to Create Cascading Style Sheets in FrontPage 98 This article describes how to create an external, embedded, and inline Cascading Style Sheet (CSS).
For more information about the support options that are available and about how to contact Microsoft, visit the following Microsoft Web site:
NOTES:
| • | To use the full functionality of Cascading Style Sheets, you need a browser that support them, such as Microsoft Internet Explorer 4.0. Some browsers support only certain aspects of Cascading Style Sheets. Your results may differ, depending on the browser you are using. |
| • | Do not use themes for this demonstration or the examples will not work properly. |
To create an external style sheet, follow these steps.
| 1. | In FrontPage Explorer, create a FrontPage web named Style . | ||||||||
| 2. | On the Windows Start menu, point to Programs, point
to Accessories, and then click Notepad. Type the following code:
|
||||||||
| 3. | On the File menu, click Save. In the File Name box, type External.css and click OK. | ||||||||
| 4. | Switch to FrontPage Explorer and then import the
External.css file into the Web by following these steps:
|
||||||||
| 5. | Create a new page in FrontPage Editor. | ||||||||
| 6. | Click the HTML tab located at the bottom of the FrontPage Editor window. | ||||||||
| 7. | Type the following HTML code between the <HEAD> and
</HEAD> tags:
|
||||||||
| 8. | On the File menu, click Save. In the File Name box,
type Style1.htm and click Save. NOTE: The Style1.htm file and the External.css files should be saved in the same folder. |
To create an embedded style sheet, follow these steps:
NOTE: Do not use themes for this demonstration or the examples will not
work properly.
| 1. | In the FrontPage Editor, create a new page. To do this, click New on the File menu. |
| 2. | On the Format menu, click Stylesheet. |
| 3. | In the editor window in the Format Stylesheet
dialog box, type the following code. NOTE: Be sure to type your code between the <!-- and --> tags.
|
| 4. | Click OK. |
To create an inline style, follow these steps:
| 1. | In the FrontPage Editor, create a new page. To do this, click New on the File menu. | ||||||||||||
| 2. | Place the insertion point in the top left corner of the page. Type some text on the page. Select the text you just typed and then click Hyperlink on the Insert menu. | ||||||||||||
| 3. | Select the page you want to use as the target of your hyperlink. | ||||||||||||
| 4. | Click Style. | ||||||||||||
| 5. | In the Style dialog box, do the following:
|
||||||||||||
| 6. | Click OK. |
For more information about Cascading Style Sheets, please see the following article in the Microsoft Knowledge Base:
The New CSS Style dialog box appears.
Figure 15. The New CSS Style dialog box
Dreamweaver supports class selectors and tag selectors. A class selector defines a new named style, such as myBodyText. Once defined, you can apply the myBodyText style to any text selection.
A tag selector applies to all HTML tags of a particular type. For example,
if you select the table row tag, tr, and set the font
to Helvetica; this then applies the Helvetica font automatically to all table
rows.
The New CSS Style dialog box closes and the Style Definition dialog box opens.
Figure 16. The CSS Style definition dialog box
Figure 17. The Styles preview dialog box
Before you can apply the styles defined in an external style sheet, you must attach the style sheet to your pages.
Figure 18. The Attach Style Sheet button
The individual styles appear in the CSS Styles panel. They also appear in the Style pop-up menu in the Property inspector.
Figure 19. The Property inspector style pop-up menu
Click or select a page element and do one of the following:
Figure 20. The Edit Style button
Figure 21. The CSS Style Definition dialog box
For more information, see the following topics in Using Dreamweaver Help:
|
|||||||
By deleting all your font tags etc., etc., etc. from your HTML and using an external style sheet not only will your pages reduce in size, but the sheet only needs to be downloaded once, which makes for a MUCH faster loading site, and, as we all know, visitors won’t stay around for long.
If you have a page you wish to convert there is a FrontPage Addin called FrontPagePowerEdit that will remove unwanted code from all your pages at once.
http://frontpagepoweredit.com/Remember also that if your user’s browser does not support CSS, they will still be able to retain functionality; your content will still be available as plain text.
Increased accessibility allows you to cater to everyone (something the search engines like) and is likely to increase your SEO standing. You can check my comments on this with free classes at: http://groups.yahoo.com/group/SEO_Techniques/ The group also contains regular extra classes for HTML and CSS. I highly recommend you join.
Recommended Links
In case of broken links please try to use Google search. If you find the page please notify us about new location
Microsoft/Using Cascading Style Sheets on Your Web Site
ABC ~ All 'Bout Computers, Vol. 37 FrontPage and CSS, Part 1
FrontPage PowerEdit - Zap the FrontPage Bloated HTML Code $47 plug in for convertion the page. Quality in unclear.
Enjoy these other great FrontPage Web sites:
Copyright © 1996-2008 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Standard disclaimer: The statements, views and opinions presented on this web page are those of the author and are not endorsed by, nor do they necessarily reflect, the opinions of the author present and former employers, SDNP or any other organization the author may be associated with. We do not warrant the correctness of the information provided or its fitness for any purpose.
Last modified: November 08, 2008