Make Money Online!
Hi, I'm Ben and I own Create a Great Website! I'm currently earning well over $1,500 plus per month online in my spare time, and I want to show you how you can do the same.
Fill out the form below and I'll send you my free guide to create a great website and how you can earn money online just like I do! You won't be disappointed.
Make Money Online!
Dreamweaver CS5
Attaching an External Style Sheet to a Page
This tutorial illustrates attaching an external style sheet Dreamweaver CS5.
One of the advantages of using external style sheets is that we can apply them to any of our web pages. This can help not only in consistency, but in saving time in copying design elements between sites and pages.
We already have one external style sheet, so let's now apply it to a different page.
Start with this page.

To attach the existing style sheet, select CSS Styles from the Format menu.

Select Attach Style Sheet... from the fly-out menu and you see the Attach External Style Sheet dialog.

Browse to the style sheet we created earlier.

Press OK, and the external style sheet is attached to the page.
Now we can use the rules in the sheet. For example, here I've selected the first line on the page and clicked the dropdown on Targeted Rule in the Properties Panel.

All of the rules in the style sheet are available to me. I choose .header and note the effect.

The CSS rule .header is applied to the first line.
It's important to understand what happens when we apply a style sheet. For the sheet we've just attached, here is the section of the style sheet relating to the page body.

The <body> tag is modified so that the background color is set, the font and size are set and the font color is set. All of the body text in the page we attach the style sheet to changes accordingly by default. For any specific styles or body elements there may be additional changes that override this.
In the case of the rule .header the definition in the style sheet is.

This only change due to .header is the background color, and the green background color is the only noticeable difference.
More Dreamweaver Tutorials
All Dreamweaver CS5 Tutorials - Will be complete by Januay 2011.
Buy Dreamweaver CS5
Find this website useful?
It will appear on your page as: Attaching an External Style Sheet in Dreamweaver CS5
Share this Webpage
This site proudly build with Site Build It!





