Information Resources & Technology (IRT)

Edit Text and Apply Text Styles

You will encounter two kinds of text formatting in Dreamweaver:

  1. Block-level or "native" HTML, which includes Paragraphs and Heading 1 through Heading 6, affect the entire block of text; use the Format menu in the Properties Inspector
  2. Special CSS (Cascading Style Sheets) styles can be applied to individual bits of text or whole blocks; use the Style menu in the Properties Inspector
Watch Demo

Step 1: Create new headlines and paragraphs

  1. View the page you want to edit in a browser; Students, find your practice site home page
  2. Switch to Dreamweaver, find the corresponding file from your Local Files list, get a fresh copy and open it; Students, it's root/index.html
  3. Students, update the main headline so others will know you are practicing here; Example: "[Your Name] is Practicing Here 6/21/07"
  4. Put your cursor at the beginning of the body text and create a new paragraph by typing Enter, move the cursor up, and type in some text
  5. Type Enter and type a second line of text
  6. With your cursor anywhere on the first new line, drag the "Format" menu to "Heading 2"
    • The entire block changes
  7. Move your cursor down a line and repeat, choosing Heading 3 this time
  8. With the cursor still on the second line, go back to "Format" and choose "Paragraph"
    • The entire block changes; this is what is meant by "block-level"

Best practices:

Watch Demo

Step 2: Apply special CSS text styles

This is an example paragraph where a number of different CSS styles have been applied. Note that this paragraph is quite ugly as a result.

  1. Select some text
  2. Apply a CSS style using the following menu sequence: Text > CSS Styles > [pick any style that begins "text_"]
  3. Repeat for other CSS styles; try right-click (windows)/ctrl-click (mac) to find the CSS Styles menu
  4. Repeat in a headline block
  5. Place a cursor within or at the end of a paragraph without selecting any specific text
  6. Apply a CSS style
    • The entire block changes; not knowing what specific text to apply the style to, Dreamweaver applies it to the nearest tag

Know your style

The Stanford Medicine format contains many styles for different purposes. Styles that begin "text_" are intended to style regular text. Styles that begin "link_" are for styling links. Avoid using styles that begin "Nav" as these are used by our navigation scripts. We will discuss some of the other styles as we go along. Please review the list of Stanford Medicine Styles by Category, and print it out for later reference.

Caution: HTML formatting and custom styles

Good formats: OK to use:

  • Bold
  • Italic
  • Bulleted lists
  • Numbered lists
  • Blockquotes
  • Text alignments

Bad formats: Don't ever use:

  • Font (i.e. Arial, Helvetica, sans-serif, etc.)
  • Size

Use with caution only:

  • Text color

« Previous | Home | Next »

Stanford Medicine Resources:

Footer Links: