Dreamweaver CS4 Resources
|
Edit a CSS rule
You
can easily edit both internal and external rules that you have applied
to a document.
When you edit a CSS style sheet that controls
the text in your document, you instantly reformat all of the text
controlled by that CSS style sheet. Edits to an external style sheet
affect all the documents linked to it.
You can set an external
editor to use for editing style sheets.
Edit a rule in the CSS Styles panel (Current mode)- Open the CSS Styles panel by selecting
Window > CSS Styles.
- Click the Current button at the top of the CSS Styles
panel.
- Select a text element in the current page to display
its properties.
- Do one of the following:
Double-click a property in the Summary
for Selection pane to display the CSS Rule Definition dialog box,
and then make your changes.
Select a property in the Summary for Selection pane,
and then edit the property in the Properties pane below.
Select a rule in the Rules pane, and then edit the
rule’s properties in the Properties pane below.
Note: You can
change the double-clicking behavior for editing CSS, as well as
other behaviors, by changing Dreamweaver preferences.
Edit a rule in the CSS Styles panel (All mode)- Open the CSS Styles panel by selecting
Window > CSS Styles.
- Click the All button at the top of the CSS Styles panel.
- Do one of the following:
Double-click a rule in the All Rules pane
to display the CSS Rule Definition dialog box, and then make your
changes.
Select a rule in the All Rules pane, and then edit
the rule’s properties in the Properties pane below.
Select a rule in the All Rules pane, and then click
the Edit Style button in the lower-right corner of the CSS Styles
panel.
Note: You can change the double-clicking behavior for
editing CSS, as well as other behaviors, by changing Dreamweaver
preferences.
Change the name of a CSS selector- In the CSS Styles panel (All mode) select
the selector you want to change.
- Click the selector again to make the name editable.
- Make your changes and press Enter (Windows) or Return
(Macintosh).
|