Dreamweaver CS4 Resources
|
Set text properties in the Property inspector
You can use the text Property inspector
to apply HTML formatting or Cascading Style Sheet (CSS) formatting.
When you apply HTML formatting, Dreamweaver adds properties to the
HTML code in the body of your page. When you apply CSS formatting,
Dreamweaver writes properties to the head of the document or to
a separate style sheet.
Note: When you create CSS inline styles,
Dreamweaver adds style attribute code directly to the body of the
page.
Edit CSS rules in the Property inspector- Open the Property inspector (Window >
Properties), if it isn’t already open and click the CSS button.
- Do one of the following:
- Make changes to the rule by using the various options
in the CSS Property inspector.
- Targeted Rule
- Is the rule you are editing in the CSS Property inspector.
When you have an existing style applied to text, the rule affecting
the text’s format appears when you click inside the text on the
page. You can also use the Targeted Rule pop-up menu to create new
CSS rules, new in-line styles, or apply existing classes to selected
text. If you’re creating a new rule, you’ll need to complete the New
CSS Rule dialog box. For more information, see the links at the
end of this topic.
- Edit Rule
- Opens the CSS Rule Definition dialog box for the targeted
rule. If you select New CSS Rule from the Targeted Rule pop-up menu
and click the Edit Rule button, Dreamweaver opens the New CSS Rule
definition dialog box instead.
- CSS Panel
- Opens the CSS Styles panel and displays properties for
the targeted rule in Current view.
- Font
- Changes the font of the targeted rule.
- Size
- Sets the font size for the targeted rule.
- Text Color
- Sets the selected color as the font color in the targeted
rule. Select a web-safe color by clicking the color box, or enter
a hexadecimal value (for example, #FF0000) in the adjacent text
field.
- Bold
- Adds the bold property to the targeted rule.
- Italic
- Adds the italics property to the targeted rule.
- Left, Center, and Right Align
- Adds the respective alignment properties to the targeted
rule.
Note: The Font, Size, Text Color, Bold, Italic, and Alignment
properties always display the properties for the rule that applies
to the current selection in the Document window. When you change
any of these properties, you affect the targeted rule.
Set HTML formatting in the Property inspector- Open the Property inspector (Window >
Properties), if it isn’t already open, and click the HTML button.
- Select the text you want to format.
- Set the options you want to apply to the selected text:
- Format
- Sets the paragraph style of the selected text. Paragraph
applies the default format for a <p> tag,
Heading 1 adds an H1 tag, and so on.
- ID
- Assigns an ID to your selection. The ID pop-up menu (if
applicable) lists all of the document’s unused, declared IDs.
- Class
- Displays the class style that is currently applied to
the selected text. If no styles have been applied to the selection,
the pop‑up menu shows No CSS Style. If multiple styles have been
applied to the selection, the menu is blank.
Use the Style
menu to do any of the following:
Select the style
you want to apply to the selection.
Select None to remove the currently selected style.
Select Rename to rename the style.
Select Attach Style Sheet to open a dialog box that lets
you attach an external style sheet to the page.
- Bold
- Applies either <b> or <strong> to
the selected text according to the style preference set in the General
category of the Preferences dialog box.
- Italic
- Applies either <i> or <em> to
the selected text according to the style preference set in the General
category of the Preferences dialog box.
- Unordered List
- Creates a bulleted list of the selected text. If no text
is selected, a new bulleted list is started.
- Ordered List
- Creates a numbered list of the selected text. If no text
is selected, a new numbered list is started.
- Indent and Outdent
- Indent or remove indentation from the selected text by applying
or removing the blockquote tag. In a list, indenting
creates a nested list and removing the indentation unnests the list.
- Link
- Creates a hypertext link of the selected text. Click
the folder icon to browse to a file in your site; type the URL;
drag the Point-To-File icon to a file in the Files panel; or drag
a file from the Files panel into the box.
- Target
- Specifies the frame or window in which the linked document
will load:
_blank loads the linked
file in a new, unnamed browser window.
_parent loads the linked file in the parent
frameset or window of the frame that contains the link. If the frame
containing the link is not nested, the linked file loads into the
full browser window.
_self loads the linked file in the same
frame or window as the link. This target is implied, so you generally
don’t need to specify it.
_top loads the linked file in the full browser
window, thereby removing all frames.
|