|
| |
How To Customize Cascading Style Sheets in FrontPage 2000.
by
L M Jackson
Introduction:
This article assumes the reader has a functional knowledge of coding HTML
with or without using FrontPage 2000. i.e. The reader should know what a
Paragraph tag is (e.g. <P> ...</P>). The reader should have a basic
understanding of navigating the menus of Microsoft FrontPage 2000 (e.g. The
"sidebar", "drop-down", "buttons" etc.). It is not
necessary to know freehand 'style sheet' editing to use this information. The
reader should understand basic Style Sheet structure and declaration (e.g. HTML
tags are known as "Selectors" and "{...Element-Name: Property
Stuff;}" is the structure of a CSS Element and their Properties).
FrontPage 2000 by Microsoft Corporation is still widely used today. As such,
many are still learning to use the Tricks and Wizardry this software has to
offer. At Microsoft Help and Support one may still find helpful FrontPage 2000
sections labeled, "Highlights & Top Issues", along with
"Step-by-Step Instructions & How To Articles" (i.e. <http://support.microsoft.com/ph/1901>).
These helpful sections are excellent support information for novice (who have
some HTML skills), intermediate and up-through advance Web developers.
With current Web page Development Trends strongly supporting concepts like, "Separation
of Presentation and Content" (A.K.A. "Separation of Style and
Content") and "Semantic Markup", there is a real demand
that a HTML Developer use CSS (i.e. Cascading Style Sheets) with their HTML
coding.
If you do not already know this, "Separation of Presentation and
Content" is a Web Design concept that recommends you code your pages’
Content with the "Semantic Markup" (i.e. Using HTML, XHTML,
signs, symbols, etc. that relate to page interpreting.). Additionally, you
create the Style/Presentation using an external CSS or XSL file. (You can
also, code your CSS as Embedded/Inline of the HTML file but that defeats the
separation concept.) There are many advantages for CSS coding (and some
disadvantages currently.) but, that is a topic beyond the scope of this article.
So, with a background and foundation now explained, let's see how it is done
in Microsoft FrontPage 2000.
Comcast High Speed Internet - $75.00 Cash Back & Free Modem
Create a custom Cascading Style Sheet in Microsoft FrontPage 2000.
First, open one of FrontPage's built-in style sheets of choice. To do this
follow these steps:
- Go to "File" => "New" => "Page"
=> and choose the tab, "Style Sheets".
- Choose one of the existing styles here, or choose the "Normal Style
Sheet" (which is an empty style sheet of default name,
"new_page_1.css").
- Click the [OK] button.
- Once you save this file, FrontPage shows a floating button on your screen, labeled, "A Style".
Note: As an alternative, you may by-pass the above Three steps and merely
create a file /New Page in FrontPage and save it with the name
"new_page_1.css” or any other name as long as it ends with the suffix
".css."
Second, you will want to edit the, "new_page_1.css" file now in
created in FrontPage.
- Click the "A Style" button. If the "A Style" button is
not already showing, go to "File" => "A Style" and click
on it. This opens the editing "Style" screen.
- If adding a new "Style" Selector (i.e. h1, P, etc), click on the
[New] button. If adding a new custom style, (i.e. #highlight {...}), then within
the "List" box, choose "User-defined Styles", and then click
the [New] button.
- If modifying an existing "Style" Selector, highlight your choice
on the left and click the [Modify] button. If modifying a new custom style,
(i.e. #highlight {...}), then within the "List" box, choose
"User-defined Styles", highlight your choice, and then click the
[Modify] button.
- Modify or add within the "Name (selector)" if necessary
- Click the [Format] button to modify the CSS Font, Paragraph, Border,
Numbering, and Position elements.
- Click the [OK] button to save or the [Cancel] button to not save the
editing.
- Repeat steps numbers Two through Six for additional editing or click [OK]
to save changes to CSS.
- Click "Save or "Save As" and choose a name and location for
the CSS file if you wish
Third, using a newly created, or modified, and saved FrontPage 2000 CSS file.
- On your FrontPage sidebar "View" or your overhead drop-down menu
"View," click on "Folders".
- Select the filenames (using your [Shift] or [Control] keys) of the files
to be using the CSS that was created/modified and saved.
- On your overhead, dropdown menu, choose "Format" =>
"Style Sheet Links" which opens to the "Link Style Sheet"
page.
- Choose "Selected pages(s)" or "All pages" radio
button.
- Click the [Add] button. This opens the "Select Hyperlink" page.
- Next to the "Look in" window, use the navigation buttons (Up 1
Level or Drop-down) to the right to locate your desired/created CSS.
- Highlight your CSS. It will appear in the "URL" window near the
bottom. Click the [OK] button and your CSS is saved under the URL box of the
"Link Style Sheet" page.
- Click [OK] to close the "Link Style Sheet" page.
- Your CSS has been applied to all the previously selected (steps 2 through
4) pages.
Safe editing of "Shared Border" CSS.
Shared Borders are created with a FrontPage
wizard that creates columns and borders around the main content of a web page.
These "Shared Borders may be applied to one, or more pages of a FrontPage
web in a single choice selection.
- In FrontPage go to "Tools => "Web Settings" =>
"Advance" tab and select "Show documents in hidden
directories". (If this is not already done.)
- Click the [OK] button.
- On the sidebar or drop-down menu, click [Folders] => go to
"_borders" => then choose the border file (e.g. left.htm) you wish
to work with and make a copy.
- Load the original border file into your FrontPage editing window like any
other HTM file.
- You may now edit Content or Markup as needed. You may safely do so above
or below the existing navigation paragraphs in this file but, it
is unwise to edit within the <P></P> of the navigation toolbar!
Microsoft has inherent scripting that most developers are not skilled to modify.
To ignore this warning may result in unpredictable errors (e.g. MS IE may
abruptly abend or lock on pages that have been changed within these flagged
paragraphs.
As a partial workaround, you may ’cascade’ your desired effects by moving
the "<LINK rel=...> css tag AFTER FrontPage’s <!--MSTHEM--><LINK
REL..." and <META NAME="Microsoft Border"...> . This will
allow for much of your CSS to be effective under the rules of Cascading over
default themes of FrontPage.
Additionally, you may edit the Theme itself using FrontPage’s Theme wizard
(WYSIWYG). Thus, explicitly creating the colors you desire.
- Depending on your task, you may use either or both, the WYSIWYG or
HTML editing in FrontPage to customize the Shared Borders under the new block
tags (e.g. <P>, DIV>, etc.). With your Markup (if needed at all) done,
you are now ready for the section, "Safe custom editing of FrontPage CSS
Themes within a Shared Border".
Safe custom editing of FrontPage CSS Themes within a Shared Border.
- Apply a chosen FrontPage built-in theme to a single page first. This is a
measure of safety.
- Save this new themed page!
- If you need to make Content or Markup changes in the Shared Border file,
then follow the directions (and advice) laid out in section entitled, "Safe
editing of "Shared Border" CSS".
- At this point, FrontPage has created the CSS files for the Theme that you
applied in Step 1 under the folder, "_themes\ThemesName.css". There will
probably be more than one (1) CSS file here. This is common with FrontPage built-in Themes.
- Load the CSS file that you wish to modify into your FrontPage editor
window like it was an HTM file. (You
may need to view several of the CSS files to determine which file needs
modifying.)
- You may now edit any or all of the CSS Selectors and Declarations
(Elements & Properties) as you wish using the methods described under the
earlier section entitled, "Second, you will want to edit the,
"new_page_1.css" file now in created in FrontPage".
- If you need to locate another part of the built-in Frontpage CSS, you may
repeat steps #3 through #6 in this section.
At first sight, it may appear that CSS customizing in Frontpage 2000 is
complex. It really is not. It appears to be so because explaining coding or
programming in literary text flow is difficult to visualize. Once you print
these steps and step through Frontpage CSS using them, you will discover that it
really is simple and quick. Admittedly, using a built-in Frontpage theme, along
with FrontPage’s Shared Borders and customizing all three … the theme, the
borders, and the CSS … appears challenging. However, after one or two step-throughs,
this effort becomes easy as well.
|