Dreamweaver - Forms - Adding a fieldset
Go to the forms tab on the Insert menu:
Click on the icon to create a new form. In Design view, the form is outlined by a dashed red line.
Once you've created a form, move your cursor inside the form area. Then click on the icon to create a new fieldset. This pops up a window like this:
The "Label" field lets you edit what text will appear at the top of the fieldset. You can leave this blank. Fieldsets are used to group form elements. Placing elements inside a fieldset will draw a box around all of the elements, and you can add a label at the top of the fieldset.
Here's the code for that example:
If you want to change the properties of the fieldset, you'll have to go into code view. Find the "fieldset" tag, right click on it and select what you want to edit. Selecting "Edit Tag <fieldset>..." allows you to change all of the attributes at once:
- None of these really need to be changed unless you know some CSS that you would like to throw in.
You can also find the "legend" tag, right click and select "Edit Tag <legend>..." to change the fieldset's label. If there is no "legend" tag, you can add one immediately after the opening "fieldset" tag.
- The "Alignment" dropdown menu lets you set the alignment of the fieldset's label to either left, right, or center. Center alignment only works in IE 4 or better.