Working with div tags for layout

After you insert a div tag (see Inserting div tags for layout), you can manipulate it or you can add content to it.

Div tags have visible borders when you've assigned borders to them, or when you have CSS Layout Outlines selected. (CSS Layout Outlines is selected by default in the View > Visual Aids menu.) When you move the pointer over a div tag, Dreamweaver highlights the tag. To change the highlight color or disable highlighting, see Changing the highlight color for div tags.

When you select a div tag, you can view and edit rules for it in the CSS Styles panel. You can also add content to the div tag by simply placing your insertion point inside the div tag, and then adding content just as you would add content to a page.

To view and edit rules applied to a div tag:

  1. Do one of the following to select the div tag:
  2. Select Window > CSS Styles to open the CSS Styles panel if it is not already open.

    Rules applied to the div tag appear in the panel.

  3. Make edits as necessary.

To place the insertion point in a div tag to add content:

To change the placeholder text in a div tag:

Related topics