
Chapter 8 Web Site Design and Development 307
technique Lesson 8.15: adding Browser-Based text to a page and
Using CSS for text Formatting
HTML (browser-based) text is limited to the fonts available to the Web browser
on the viewer’s computer. You must therefore use only certain fonts for HTML-
based text: Arial, Helvetica, Times, Times New Roman, Geneva, Courier, Geor-
gia, and Verdana.
Add text to a Web page by clicking on the page itself, or on a Web page
content container such as an AP div or table cell, and begin typing. To set font
attributes, highlight the text and go to the PROPERTIES INSPECTOR, where you
can edit the values for font, font size, and font style. Once you set the font the
way you want, Dreamweaver will assign a generic name to the font and attach it
to the document using CSS.
CSS, which stands for cascading style sheets, provides a collection of for-
matting rules that control the appearance of content items in a Web page. CSS
styles creates a set of rules (settings and attributes) to control content. CSS rules
separate content from formatting by creating two separate les. The HTML le
holds the content of your page; the CSS rules dening the formatting of the code
is in another le.
The CSS rules can get saved into a .css le, which is an external style sheet.
If a separate, external .css le is not saved, the CSS is embedded in the head
section of the HTML document. If they are embedded, you can apply the fonts
and edit the CSS rules in Dreamweaver’s CSS STYLE panel. You can rename the
styles right from the PROPERTIES INSPECTOR.
Using CSS enables you to control the appearance of the Web page, includ-
ing its text properties. The properties that can be manipulated include fonts and
font sizes; font styles (bold, italic, underlining, and text shadows); text color and
background color; and link color and underlining. Letting CSS control your fonts
gives your Web page a consistent appearance across multiple browsers.
QuiCk StePS (DW):
Editing and Setting Type Using Embedded CSS
1. Open the PROPERTIES INSPECTOR (WINDOW > PROPERTIES) and CSS
STYLES panel and (WINDOW > CSS STYLES).
2. Enter text inside a page, AP div, or table cell.
l
8.15
98364c08.indd 307 1/15/10 1:15:24 PM