Académique Documents
Professionnel Documents
Culture Documents
Maxwell by PVII
IMPORTANT: Dreamweaver MX 2004 (version 7.x and higher) will render your Maxwell page in Design View very nearly
the same way that a modern browser will. Dreamweaver MX (version 6.x) does not support some basic CSS properties
and its display will not be completely accurate. This is not the fault of our code - it is simply the lack of CSS support
programmed into Dreamweaver MX. To see the page accurately, you merely need to preview it in your browser.
What's included
Everything you need is included:
• Extensions
• Editable Fireworks images
• Starter page
• CSS files
• This User Guide (in both HTML and PDF formats)
Extensions
The following extension can be found in the J.D. Maxwell local files folder:
1. P7_v4StyleSheet_11.mxp
Install it before you begin working on your page. If you are not sure how to install an extension,
choose:
Note: After installing the extension be sure to close and restart Dreamweaver.
Starter Page
To make your job a bit easier, we've included a starter page for you: maxwell.htm is located in the
root of your Maxwell web site.
CSS Files
There are five included CSS files:
We embed (insert) the Maxwell logo inside the topBar DIV. The logo image is optimized as a
transparent GIF to make it blend seamlessly into the topBar background. Here is how the logo
image looks against the white background of this User Guide page:
The text appears jagged because the logo is anti-aliased (smoothed) and optimized to blend into
the topBar background. See how it smooths out when viewed against the topBar background:
The CSS rule for topBar also sets text alignment right in order to align the Maxwell logo image to
the right edge of the DIV.
Note: The topBar background image, the logo, and the topBar DIV itself are all the same height (132 pixels). If you
change the height of the background image or the logo, you must make a corresponding change to the height property in
the topBar CSS rule. See the topBar rule in this User Guide's CSS analysis for additional information.
1. It carries the center portion of the beveled frame. This part must expand and contract,
vertically, according to the amount of content on the page and the size of the browser
window.
2. It establishes the background colors for the maincontent and sidebar DIVs. The boxes are
separated by a dashed line, which is also part of the background image, as shown below:
Note: Because the maincontent and sidebar DIVs are nested inside the wrapper, the wrapper’s background image spans
them both. This is how one background image can provide a background for two distinct areas. If you change the width of
this image, or the position of the vertical dashed rule, you must also adjust the widths of the #maincontent and #sidebar
rules correspondingly.
We also insert an image in the DIV that serves as a link that users can click to scroll up to the top
of the page:
The Top of Page image is 34 pixels high - just like the bottomBevel background. The text is not
jagged because it's an aliased font optimized for the web. Here is how the image looks against the
bottomBevel DIV background:
Text alignment is set to right so that the embedded "Top of Page" image is aligned to the right
edge of the DIV.
In this manner, we've added practical functionality to a DIV that ordinarily would serve no other
purpose but to carry an interface graphic.
CSS Strategy
J.D. Maxwell employs a modern and practical CSS strategy to serve style sheets specifically
optimized for the screen - and also for printers. A main style sheet is served to modern browsers,
but hidden from Netscape 4 and IE4 - which are instead served a special style sheet that contains
only styles that they support. Modern browsers use current CSS techniques for a richly styled
page, while older browsers get a nicely styled page that uses CSS techniques that they safely
support. Modern browsers also benefit from the inclusion of a special print media style sheet that
provides a page optimally styled for printers. When you print (or print preview) your Maxwell page
in a modern browser, you will see a page that is logically set up for printing.
The masthead DIV contains J.D. Maxwell's level one heading (H1), as well as a home icon set as
its CSS background image. The heading text is left-padded to provide a space for the background
image. Edit this text as you normally would any text in Dreamweaver Design or Code views.
• Enter the page or file you wish to open into the Link field on your Property inspector (or use
the browse icon to find the file)
Your new link will appear, fully styled, on the new line you created.
bottomBevel DIV
The bottomBevel DIV contains a right-aligned image that links to a named anchor at the top of the
page. When you click the link, the page scrolls back to the top. This DIV is also assigned a CSS
background image that serves as the bottom portion of the beveled layout.
footer DIV
The footer DIV contains a copyright notice. Edit it to reflect your site's name.
CSS Guide
Your PVII FastPack™ is powered by CSS. The CSS Guide will walk you through each of the rules
in each of the style sheets. Please do take the time to read it.
A media type set to screen describes a style sheet designed for browser screens only. This
technique also allows us to more easily deploy a special style sheet just for printing (using the print
media type), which will be discussed later.
Dreamweaver MX2004 has a rather quirky behavior that prevents accurate previewing in older
browsers. When you preview in your browser using the Temporary file option, Dreamweaver
embeds the contents of imported and linked style sheets into the document's head, thereby
exposing it to all browsers and preventing a reliable local preview in Netscape 4. To preview locally
in Netscape 4:
The Dreamweaver syntax will hide CSS from all version 4 browsers except for some later versions of IE4 that
shipped with Windows 98. If you use Dreamweaver to Import your style sheet, you will need to edit the @import
directive manually to remove url and parentheses and to insert double quotes around the file path:
@import "../test.css";
If you subsequently move an HTML or CSS file using Dreamweaver's site or files panels, Dreamweaver will
overwrite your syntax and you'll need to edit it again.
Body
Sets the page background image. Sets the page background color to match the dark portion of the
background image. Sets the background image attachment to fixed so that as the page is scrolled,
the background image remains fixed in place. Sets the global font family, base font size, and font
color.
A font-size of 101% may seem odd, but it serves to address an IE5.x PC bug when text is set to
"smallest" from the browser's View menu.
Margin is set to 30px bottom; and 0 top, left and right. Padding is set to zero to turn off the default
padding Opera browsers place on the body.
The min-width property is used to address a quirk in Mozilla browsers. When a fixed width
construct is centered with CSS (using left and right margins set to auto), there is an issue when
you resize the window narrower than the centered construct: it moves off the page to the left and
the browser does not spawn a horizontal scrollbar - the content is lost off-screen. Using the min-
width property with a value equal to the width of the construct solves the problem. In this case, the
min-width value is set to 740px, which is equal to the width of the wrapper DIV.
body {
background-image: url(images/max_pbg.jpg);
background-repeat: repeat-x;
background-attachment: fixed;
background-color: #555555;
font-family: Arial, Helvetica, sans-serif;
font-size: 101%;
color: #333333;
margin: 0 0 30px 0;
padding: 0;
min-width: 740px;
}
Insight: CSS shorthand permits combining values. Properties that have possible top, bottom, left, and right values can be
shortened to a single line and the direction can be omitted. This saves many keystrokes. Instead of having four separate
properties: margin-top; margin-bottom; margin-left; and margin-right - we can distill to a single declaration encompassing
all 4 values. To keep track of which value relates to which side, CSS has a default order: Top; Right; Bottom; Left. Values
are always declared clockwise from the top. If you commit this order to memory, you will always avoid TRouBLe. When a
single value is declared (as in margin: 24px;) the value relates to all four sides. When two values are declared (as in
margin: 24px 12px;), the first value relates to both the Top and the Bottom, while the second value relates to both the
Right and the Left. If three values are declared (as in margin: 24px 24px 12px;), it means that the first value relates only to
the Top; the second value relates to both the Right and the Left; and the third value relates to the Bottom. If the Right and
Left values are different or if all four values are different, then all four must be explicitly declared. Throughout this style
sheet we avoid using the three-value method since it's sometimes a confusing syntax - even for seasoned CSS authors.
#masthead
The masthead contains the level 1 (H1) page heading. We set its left margin to 6 pixels so that the
heading is not flush against the left edge of the page.
h1
We set a relatively small font size because our level one heading sits at the top of the page. We
also turn off the heading's default bold characteristic by setting font-weight to normal. The
background image is of a home icon. It's set to not repeat and is positioned horizontally to the left
and vertically centered - so that its alignment is consistent even when users resize text. Top and
bottom padding is set to 6 pixels so that there is enough room for the entire icon and left padding is
set to 30 pixels to leave enough room to the left of the text for the icon. Bottom margin is set to 24
pixels, which creates an offset between the bottom of the heading and the top of the content below
it.
h1 {
font-size: .75em;
font-weight: normal;
background-image: url(images/max_home.gif);
background-repeat: no-repeat;
background-position: left center;
padding: 6px 0 6px 30px;
margin: 0 0 24px 0;
}
#skipnav
The skipnav DIV is positioned absolutely and set to be zero pixels from the top of the window and
15 pixels in from the right edge. Font size and top/bottom padding are set to the same values as
the H1 so that the Skip to Navigation link and the H1 are vertically aligned. Right padding is set to
15 pixels to work around a bug in IE5-Mac. Without this padding, use of the right property on an
absolutely positioned element would cause a persistent horizontal scrollbar on the browser
window.
Text color is set to #E2DFCD, which is the same color as the link style for this element. This allows
the brackets that surround the link to be the same color as the link. The brackets are used to
prevent an adjacent link error that would violate Section 508 accessibility guidelines.
#skipnav {
position: absolute;
top: 0;
left: auto;
right: 15px;
padding: 6px 15px 6px 0;
font-size: .75em;
color: #E2DFCD;
}
Note: a:focus is used by modern browsers to style a link that is reached and highlighted when using your browser's tab
key.
#wrapper
This DIV establishes the main layout and is the container for the topBar, maincontent, sidebar, and
bottomBevel DIVs - which are nested inside it. The background image and color assigned to this
DIV act as the background for the maincontent and sidebar DIVs nested inside - creating the
illusion that they are the same height.
We set a background color, which is optional, so that a color other than the page background is
rendered while the page and the background images are in the process of loading.
Margin is set to zero top and bottom, and auto left and right. By giving an element a fixed width (in
this case 740 pixels) and setting its left and right margins to auto, the wrapper (along with all of the
elements nested inside it) is centered in the browser window.
#wrapper {
width: 740px;
margin: 0 auto;
background-image: url(images/max_sides.jpg);
background-repeat: repeat-y;
background-color: #FFFFFF;
}
#topBar
topBar is the dark gray box that spans the top of the layout. Its width is therefore set to the same
value as the wrapper. The background image is 740 pixels wide and 132 pixels high - and does not
repeat. Background color is set to a dark gray color that is similar in shade to the background
image. As the page is loading, the topBar will display a background color similar to that of the
background image - until the actual background image has a chance to load.
Text alignment is set to right so that the logo, which is an embedded image, will hug the right edge
of the DIV.
#topBar {
width: 740px;
height: 132px;
background-image: url(images/max_topbar.jpg);
background-repeat: no-repeat;
background-color: #656565;
text-align: right;
}
IMPORTANT: The height of the topBar DIV must be reset to correspond to any changes you make to the height of the
background or embeddded images.
#maincontent
We set the maincontent DIV to float: left, which takes it out of the normal page flow and allows us
to position it as a "column". We set font size to .8em, which is calculated based upon the base font
size set in the body selector: .8em relative to 101% is the same as saying 80% of 101%. We set
line-height to 1.4em to provide a comfortable and more readable spacing between lines. Text is set
to fully justify. Padding is set to 16 pixels top, 30 pixels right, 0 bottom, and 52px left.
Width is set to 446px. Note the comment to the right of the width declaration. The comment is there
to remind you how modern browsers render an element's box. The true rendered width of a
box is determined by adding its declared width plus its left and right padding and its left and right
borders. Here is the math: 446 (declared) + 52 (left padding) + 30 (right padding) = 528.
#maincontent {
float: left;
font-size: .8em;
line-height: 1.4em;
text-align: justify;
padding: 16px 30px 0 52px;
width: 446px; /*446+30+52=528 rendered*/
}
So why the odd padding values? The left and right edges of the beveled background that creates
the Maxwell interface are exactly 22 pixels wide. Look at the screen capture below. The red outline
marks the boundaries of the maincontent DIV. If we want 30 pixels of padding on both the right and
left sides of maincontent, then we need to allow for the 22 pixels that comprise the left edge of the
beveled frame. In other words, we need to add the width of the left bevel to the amount of padding
we actually want.
By adding 22 pixels to the left padding value, we achieve 30 pixels of white space between the
bevel and the left edge of the text.
Note: In the above screen capture, the red outline on the right side of the maincontent DIV is obscuring the dashed
vertical line that separates maincontent from the sidebar.
#sidebar
The sidebar is set to float left. Since the maincontent DIV is also set to float left, the DIV whose
markup comes first in the source code wins the leftmost position. Since the sidebar markup comes
after maincontent's, the sidebar is rendered on the right side.
Font size is set smaller than the maincontent DIV.
Declared width is 148px and we add right and left padding (148 + 42 + 20 = 210) to arrive at the
rendered width of 210px. This width, when added to the rendered width of the maincontent DIV
must be less than or equal to the declared width of the Wrapper DIV:
528 (maincontent rendered) + 210 (sidebar rendered) = 738. The wrapper is 740 pixels wide, which
leaves us a buffer of 2 pixels. This buffer is necessary because without it the sidebar would not
render correctly in IE5-Macintosh browsers. It seems that this browser is factoring in the left and
right borders of our navigation bar links.
#sidebar {
width: 148px; /*148+42+20=210 rendered*/
float: left;
padding: 16px 42px 0 20px;
font-size: .7em;
}
Just as with maincontent, sidebar's left and right padding are not equal. The screen capture below
illustrates why.
#maincontent p, #sidebar p
This descendant selector applies only to paragraphs that are within the maincontent and sidebar
DIVs. This rule sets bottom margin to 16px and all other margins to 0 (zero).
#bottomBevel
bottomBevel establishes the bottom edge of the beveled frame. Its width is therefore set to the
same value as the wrapper. Height is set to the height of the background image, which is also the
height of the embedded "Top of Page" image.
IMPORTANT: The height of the bottomBevel DIV must be reset to correspond to any changes you make to the height of
the background or embeddded images.
The background image is 740 pixels wide and 34 pixels high - and does not repeat.
Text alignment is set to right so that the Go To Top link, which is an embedded image, will hug the
right edge of the DIV.
Font-size is set to 10px so that in the rare event a visitor has images disabled, the ALT text will not
be so big as to cause the layout to go out of alignment.
This DIV comes after the two floated DIVs (maincontent and sidebar) and is the last element before
the end of the wrapper DIV. By setting it to clear: both, we ensure that the wrapper DIV is rendered
correctly.
#bottomBevel {
width: 740px;
height: 34px;
background-image: url(images/max_bottom.jpg);
background-repeat: no-repeat;
text-align: right;
font-size: 10px;
clear: both;
}
Insight - Clearing Floats: When floated elements are nested inside a wrapper that has a declared background, the
wrapper's bottom edge is not automatically forced down as the floated elements become taller. When a cleared element is
the last element in the wrapper, it forces the wrapper to enclose the cleared element. Since the floated elements come
before the cleared one, they go along for the ride and are also enclosed by the wrapper. DO NOT DELETE or MODIFY
THIS RULE unless you are a advanced CSS author.
#bottomBevel a
The image embedded inside the bottomBevel DIV is a link. In the event that images are disabled
by a visitor, ALT text will be displayed in our global hyperlink style. The global link style for Maxwell
would not render well in this scenario, so we give it a charcoal gray color.
#bottomBevel a {color: #333333;}
We set a font-size for all H3 elements that is slightly smaller than that of our H2 elements.
h3 {font-size: 1.2em;}
#navlist
The ID navlist is assigned to the unordered list (UL) that contains the main navigation bar. We turn
off all normal list indentation by setting both margin and padding to 0 (zero). We also set the top
border of the menu list to 1 pixel white.
Insight: Why do we zero both padding and margin to turn off indentation? Some browsers use margin while others use
padding to indent unordered list items. Setting both properties to zero ensures that all browsers behave consistently. Why
are we setting a top border? Maxwell's navigation links are boxes rendered with 1 pixel borders. If both the top and the
bottom of our links had borders, the intersection would have a 2 pixel border. By setting the top border of the entire list we
can eliminate the top borders on the individual links and achieve a perfectly rendered 1 pixel border around each link.
#navlist {
margin: 0;
padding: 0;
border-top: 1px solid #FFFFFF;
}
#navlist li
This descendant selector turns off the bullet character in the navbar lists and sets margins to 0
(zero).
#navlist li {
list-style-type: none;
margin: 0;
}
The following combined selector changes the background color and the text color for the hover,
active, and focus states.
#footer
The footer spans the entire layout, so we set its width equal to the wrapper's width.
Since the footer is outside the wrapper, we need to center it so that it aligns with the rest of the
layout. To do so, we set left and right margins to auto. Top and bottom margins are set to 0 (zero).
We set the top padding to 6 pixels to provide a bit of vertical separation from the main content. We
set right, bottom, and left padding to 0 (zero).
Font-size is set to a relatively small .7em and text color is set to an off-white shade.
#footer {
width: 740px;
margin: 0 auto;
padding: 6px 0 0 0;
font-size: 0.7em;
color: #A5A396;
}
#footer p
We set margins for paragraphs inside the footer DIV.
#footer p {margin: 0 0 8px 0;}
IE PC Conditional Comments
While some CSS authors use complex filter hacks to hide and show various rules to several
different browsers, we prefer a cleaner and more orderly approach. Conditional Comments are a
Microsoft feature built into Explorer versions 5.0 and higher. They allow you to include code
targeted at specific MSIE versions on the Windows platform (this feature is not available on
Macintosh versions). Using this technique to serve curative style rules to Internet Explorer allows
your main style sheet to remain clean and devoid of all manner of hacks.
For the J.D. Maxwell layout we need to fix IE5.x bugs and IE 6 issues, as well. There are two style
sheets that are used:
max_ie5fixes.css: Fixes relating only to IE5.x
max_ie6fixes.css: Fixes relating only to IE6
max_ie5fixes.css rules
body
IE5.x does not support auto margins to center elements but if we set text-align to center on the
body, every element on the page will be centered - along with the text inside those elements. This
is a quirky behavior specific to IE5.x that we can take advantage of.
body {text-align: center;}
By setting the body text to align center, IE5.x will center all elements within the body. Interestingly,
if we set a child element of the body (such as wrapper) to text-align left, it will still display in the
center of the window, but anything inside it will align left. If we set masthead, wrapper, and footer to
text-align left, then our page will display correctly in IE5.x.
#masthead, #wrapper, #footer {text-align: left;}
#maincontent #sidebar
IE5.x gets the box model backwards - that is, it adds padding to the inside of the box, rather than to
the outside. In IE5.x (Windows) a box's rendered width is always the same as its declared width.
#maincontent {width: 528px;}
#sidebar {width: 212px;}
#navlist a
IE5.x has problems with list items that are links when they are also displayed as blocks. To fix that,
we float them left and clear them in both directions. This closes up extra vertical gaps between
links. Then we set a height of 1em on the <a> elements, which enables the link to be active for the
entire box rather than just the text.
#navlist a {float: left; clear: both; width: 100%; height: 1em;}
i, em
IE5.x has problems when you set text to an italic font style by using the <em> or <i> tags. This rule
allows you to display italicized text without your layout breaking.
/* The following rule stops IE5 from breaking
your floats (and your heart) when
italicized text is used.*/
i, em {
width: 100%;
overflow: hidden;
text-align: left;
}
max_ie6fixes.css rules
#navlist a
IE6 needs only the height declaration to enable the link to be active for the entire box.
#navlist a {height: 1em;}
i, em
IE6 has problems when you set text to an italic font style by using the <em> or <i> tags. This rule
allows you to display italicized text without your layout breaking.
/* The following rule stops IE6 from breaking
your floats when italicized text is used.*/
i, em {
overflow: visible;
zoom: 100%;
}
<!--[if IE 5]>
<link href="max_ie5fixes.css" rel="stylesheet" type="text/css">
<![endif]-->
To target only IE6, we use a conditional statement that specifies only IE6: [if IE 6]. Inside of the
opening and closing comments, we link the appropriate style sheet:
<!--[if IE 6]>
<link href="max_ie6fixes.css" rel="stylesheet" type="text/css">
<![endif]-->
The strategy is to minimally style the page with techniques that work well for printing. An analysis
of the print style sheet follows.
body
We simply set the background color to white.
body {background-color: #ffffff; margin: 0;}
H1
We set a bottom border on the H1.
h1 {border-bottom: 1px solid #000000;}
#masthead a
We turn off link underlining for the H1 element, which is inside the masthead DIV.
#masthead a {text-decoration: none;}
#sidebar
We set sidebar's top margin to 48 pixels and its bottom margin to 24px to provide vertical offset.
We set font-size to 80% of default.
#sidebar {margin: 48px 0 24px 0; font-size: 80%;}
#footer
We set font-size to 70% of default and set a top border.
#footer {font-size: 70%; border-top: 1px solid #000000;}
This technique allows you to maintain a completely separate style sheet for IE4 and Netscape 4.
Since modern browsers never see this style sheet, you do not have to worry about styles
conflicting from one sheet to another or of using cumbersome and complicated filter hacks. Your
version 4 style sheet contains only rules that are supported by version 4 browsers.
Note: Since the starter page already contained the command, the window will open in "modify" mode with the original
document-relative path we set. You'll know you are in "modify" mode because the window will display Apply and Remove
buttons.
-Enter an absolute or site relative path in the Path to version 4 Style Sheet box
-Make sure the Apply for Netscape 4.x browsers only box remains unchecked
-Click the Apply button
Previewing in Netscape 4
Once you change the version 4 style sheet path to absolute (or site relative) you will not be able to
preview the page locally unless you temporarily change the path back to document relative. The
PVII Write V4 Style Sheet command allows you to do this easily:
-Choose Commands: Studio VII: Write v4 Style Sheet by PVII
-Use the Browse button to locate your v4 style sheet or type in the document relative path
-Make sure the Apply for Netscape 4.x browsers only box remains unchecked
-Click Apply
IMPORTANT! Make sure you set the path back to absolute or site relative before publishing the page to the
Internet.
body
The body selector carries the background color and page margins.
body {background-color: #ffffff; margin: 24px;}
Headings
We set styles for headings level 1-3.
Note: Font size is set in pixels because older browsers do not handle proportional font sizes very consistently.
h1 {
font-size: 20px;
font-weight: normal;
margin: 0 0 24px 0;
}
h2 {font-size: 16px;}
h3 {font-size: 14px;}
#skipnav
We set font-size.
#skipnav {font-size: 10px;}
#maincontent
We set font-size.
#maincontent {font-size: 14px;}
#sidebar
We set font-size, margin, padding, and a top border. Netscape 4 will ignore the border, while IE4
will render it .
#sidebar {
font-size: 12px;
margin: 16px 0 0 0;
padding: 6px 0 0 0;
border-top: 1px solid #000000;
}
#navlist
We set a bottom margin and turn off padding.
#navlist {
margin: 0 0 24px 0;
padding: 0;
}
#navlist li
We turn off bullets and set margins to 0 (zero).
#navlist li {
list-style-type: none;
margin: 0;
}
#footer
We set font-size, top margin, top padding, and assign a top border for IE4.
#footer {
font-size: 10px;
margin: 16px 0 0 0;
padding: 6px 0 0 0;
border-top: 1px solid #000000;
}
Fonts used
The Maxwell logo uses Century Gothic, a rather elegant sans serif typeface that is widely
distributed with Operating Systems, graphics suites, and with some versions of Microsoft Office. In
the event you do not have Century Gothic installed, Fireworks will present you with a Font
Substitution dialog upon opening the Maxwell PNG.
Simply click OK to dismiss the dialog. It's not a critical component of the interface.
1. maxwell.png - Contains all of the DIV background images that comprise the layout, as well
as the Logo and Top of Page images.
2. maxwellBG.png - Contains the page background image, as well as the Home icon.
All the web images that your Fireworks document will yield are represented by slices. To view
slices open your Fireworks Layers panel and select the Web Layer.
Each slice is marked by a green overlay. If you want to edit an object, first note its slice
dimensions. If your edit results in a change of size that makes your object too large to fit under its
slice, you'll need to change the slice size. Unless you are an experienced Fireworks user, we
recommend that you make every effort to work within the scope of the default Maxwell slice
dimensions.
When editing objects, you should hide the web layer because visible slices will obscure your
objects and make editing almost impossible.
To edit the Logo text, simply double-click the text object on your canvas. The object's text will
become editable.
After double-clicking on the text, you will be able to edit it. Note how Fireworks changed the cursor
to indicate you are in text editing mode.
The rectangle is a solid color that approximates the shade of the topBar background image. By
setting this rectangle's color to transparent, we can get the logo to blend perfectly into the topBar
background image.
When you click the button, your cursor will change into an eyedropper tool.
• Point the eyedropper at the dark gray rectangle on which the logo text sits
• Click with the eyedropper tool onto the dark gray rectangle
The dark gray of the rectangle is now set as the transparent color for this GIF and will change to a
checkerboard pattern to denote that it is transparent.
Note: The Top of Page image is optimized with the same transparent color, using the same technique described for the
logo.
• Click the + symbol next to the Effects label on your Property inspector
Note: You must have Fireworks 2004 or later to add noise. If you have an older version, don't worry - it's not a critical
effect. Your image will just be a little smoother in texture.
• Click the + symbol next to the Effects label on your Property inspector
• Choose Bevel and Emboss - Inner Bevel...
• Click the + symbol next to the Effects label on your Property inspector
• Choose Shadow and Glow - Drop Shadow
• Set Distance to 2
• Set Opacity to 65%
• Set color to #000000
• Set Softness to 1
• Set Angle to 315
• Press Enter to close the dialog
How did we get the graphics in topBar to "bleed" into the beveled frame?
Let's go through the process using two practice images we've provided. We'll go through the
exercise using the beveled frame you just created in Max_test.png.
In Max_test.png...
Position the rectangle just inside the beveled rectangle as illustrated below:
• Select practiceImageLeft
• Click the Open button
• Your cursor will change into a positioning icon, which resembles a carpenter's square.
• Position the cursor as illustrated below (it doesn't need to be precisely positioned)
• Click on a blank part of the canvas, then click the faded graphic to select it again
• Click on a blank part of the canvas, then click the faded graphic to select it again
• Choose Modify - Flatten Selection
• Click on a blank part of the canvas, then click the faded graphic to select it again
• Choose Modify - Flatten Selection
Check your Property inspector for any properties Fireworks may have recalled and assigned based
on the prior selected object. You'll likely have a 1-pixel stroke around your ellipse, which must be
removed before you proceed.
• With the ellipse selected, make your Property inspector look like this:
Note: If the Texture is other than MB-Denim, that is not important - but the Amount of Texture must be 0%.
• Select the light source ellipse and make a copy (Edit - Copy / Edit - Paste)
• Position the copy over the right side graphic as illustrated below:
Should you change the color of the lower portion of the background image, make sure you make a
corresponding change to the canvas color in the maxwell.png file.
Should you change the upper portion's color make sure you reset the home icon's transparent
color and re-optimize it.
Exporting Images
After editing your Fireworks document, all you need to do to get your revised images into your
page is to run the Fireworks Export command. Follow these instructions from inside Fireworks:
• Enter max in the File name box (if it's not already there)
• For Save as type, select Images Only
• HTML should be grayed out (unavailable) and None will be displayed
• For Slices, select Export Slices
• Selected slices only, Current frame only, and Include areas without slices should all be
unchecked
• Click the Save button
A dialog will pop up warning you that you are about to overwrite (replace) existing image files.
-Click OK
All the images contained in your Fireworks document (including the ones you edited) will be
exported - overwriting your existing images and reflecting all of your changes.
Overview
The Write V4 Styles by PVII command adds a script to your page that will link the style sheet you
specify if the browser is a version 4 browser. This style sheet is applied to the page before the
page loads so the styles are completely applied to all page elements before they become viewable.
The system even allows you to target only Netscape 4.x browsers for this behavior or, the default,
all version 4 browsers.
Note: Netscape 4.x browsers will disable CSS whenever JavaScript is disabled so there is no concern about using
JavaScript to load the style sheet. If the user has JavaScript disabled in Netscape 4.x the browser will also disable all
CSS, it cannot be set independently.
Deployment Strategy
The Write V4 StyleSheet command is best deployed when the main version 5+ style sheet is kept
hidden from older version 4 browsers. This technique provides total separation of the two style
sheets; version 4.x browsers will not see the version 5+ style sheets and version 5+ browsers will
not see the version 4 style sheet.
You can easily hide the version 5+ style sheet from older browsers by using the @import
technique to attach the version 5+ style sheet:
<style type="text/css">
<!--
@import "mystyles.css";
-->
</style>
The @import directive is not understood by Netscape 4.x browsers and will be completely ignored,
thus hiding the style sheet form Netscape 4.x browsers.
The syntax of the @import statement can also be used to hide the style sheet from IE 4.x
browsers:
@import "mystyles.css";
Note: The default @import syntax used by Dreamweaver (@import url(../test.css);) will hide CSS from all version 4
browsers except for later versions of IE4 that shipped with Windows 98. If you use Dreamweaver to Import your
style sheet, you will need to edit the @import directive to this syntax. If you subsequently move an HTML or CSS
file using Dreamweaver's site or files panels, Dreamweaver will overwrite your syntax.
Now that the main version 5+ style sheet is linked to the page using the @import directive you can
apply the Write V4 StyleSheet by PVII command to dynamically load the version 4 style sheet.
The result is that only one style sheet will be seen by any browser, either the version 4 or the
version 5+ depending on the browser, providing complete independence and separation of the
style sheets.
1. Choose Commands - Studio VII - Write V4 StyleSheet by PVII to open the interface.
2. Enter the path to your version 4 style sheet, or click the Browse button to navigate to your
version 4 style sheet.
3. Optionally, click the Apply for Netscape 4.x browsers only box.
4. Click the Apply button to add the Write V4 StyleSheet by PVII scripts to your page. It runs
automatically when your page loads in a browser.
1. Choose Commands - Studio VII - Write V4 StyleSheet by PVII to open the interface. The
existing style sheet path and option will be shown in the interface.
2. Enter or Edit the path to your version 4 style sheet, or click the Browse button to navigate
to your version 4 style sheet.
3. Optionally, click the Apply for Netscape 4.x browsers only box.
4. Click the Apply button to apply the modified style sheet path and option to your page. It
runs automatically when your page loads in a browser.
Note: Modify is not supported when the scripts are located in an externally linked JavaScript file, you must manually edit
the scripts or add the scripts back to the page.
1. Choose Commands - Studio VII - Write V4 StyleSheet by PVII to open the interface. The
existing style sheet path and option will be shown in the interface.
2. Click the Remove button to completely remove the Write V4 StyleSheet by PVII scripts
from your page.
Note: Remove is not supported when the scripts are located in an externally linked JavaScript file, you must manually
remove the scripts from the external file.
The Interface:
The Write V4 StyleSheet by PVII interface allows you to enter, or Browse to, the path of your
version 4 style sheet.
Note: For maximum browser compatibility we suggest that you use a absolute url for this path in order to allow Netscape
4 browsers to locate the style sheet if the style sheet is not in the same folder as the current page.
Browse
Click the Browse button to navigate to the style sheet. A Select File dialog will open. Navigate to
the style sheet file you wish to use and click the OK button. The file path will then be displayed in
the Path to version 4 Style Sheet box. You can manually edit this path as you desire.
Apply
When you are finished entering or editing the path, and set the option, click the Apply button to
apply the Write V4 StyleSheet by PVII scripts to your page. You can preview the page in your
browser to check functionality.
Note: When using an absolute url for the path be sure that the style sheet has been uploaded to your server and that your
internet connection is available.
Remove
Click the Remove button to completely remove the Write V4 StyleSheet by PVII scripts from your
page.
Note: If the scripts are located in an external JavaScript file the Remove function will be unavailable, you must manually
remove the scripts from the external file.
Cancel
Click the Cancel button to completely abort the current Write V4 StyleSheet by PVII operation. This
will close the interface and no changes will be made to your page.
Help
Click the Help button to open the associated Help File in your browser. This page can remain
open for easy reference while you continue working with the Write V4 StyleSheet by PVII by PVII
interface.
SUPPORT OPTIONS