Creating Rounded Borders on Paragraphs

For Contribution and New Document workflows, you can use CSS3 border-radius style properties to create rounded borders on block elements, such as paragraphs and blockquotes.

The properties for block elements are available in the Stylesheet Editor and in other areas of the user interface, such as the Paragraph Properties dialog.

How to Set Rounded Borders on Block Elements

  1. Open the stylesheet you want to modify or create a new one.

  2. Complete one of the following sets of steps, depending on whether you want to use the Simplified view or Advanced view in the Stylesheet Editor.

    • Simplified The Simplified view displays styles in a grid view and is often best for brand new users.

      This view provides an easy way to apply properties to styles, with format options available from a toolbar and dialogs (similar to the way one would use an interface such as Microsoft Word). In some cases, only the most common property options are available in the Simplified view (e.g., font, letter/word spacing, paragraph alignment/indentation, autonumbering format, borders, background). One advantage of the Simplified view is that you can apply a property to multiple styles at the same time. You can also click a check box to hide the properties in the editor, allowing you to see only the styles.

    • Advanced The Advanced view displays styles in a tree structure, and despite the name, is user friendly for authors of all levels.

      For the properties, you can toggle between a grouped display and an alphabetical display. The Advanced view of the Stylesheet Editor lets you edit more settings than are available in the Simplified view. In addition, the Advanced view lets you see and apply settings to multiple mediums and media queries at the same time.

    If Using Simplified View

    1. In the local toolbar, make sure the first button displays The button to change the stylesheet to the simplified view. (which means that the Simplified view is currently shown in the editor). If the button displays The button to change the stylesheet to the advanced view. instead, then click it.
    2. In the upper-left corner of the Stylesheet Editor, click in the drop-down field and select The paragraph style category selected in the types of styles drop-down list..
    3. Select the appropriate paragraph style. For example, you can select the parent p tag, or you can select a class that you may have created for that tag (e.g., p.Tip, p.Note).
    4. In the local toolbar of the editor, click Display properties for the selected item.. The Properties dialog opens.
    5. Select the Borders tab.
    6. Set the options in the Border Radius section.

      1. Click in any of the individual fields (Top-Left, Top-Right, Bottom-Right, Bottom-Left) to specify the settings for a particular corner of the block element. If you click the down arrow to the right of all the fields, the settings will be applied to all of the fields.

        When you click that down arrow or in one of the individual fields, a small popup displays.

        This popup has two halves. You can complete only the left side of the popup if you like. This will create a curve that is equal horizontally and vertically. If you want a border to have more of a curve either horizontally or vertically, you can complete the fields in the right half of the popup as well, so that you have two values (e.g., 10px 15px) instead of one. For more information on using two sets of border radius properties, see css3.info/preview/rounded-border/.

      2. Use the lower-left area of the popup to enter a number for the amount of curve. The greater the number, the more curve that is applied.
      3. Use the area to the right of the number field to select a unit of measurement (e.g., point, pixel, centimeter).
      4. If you want to provide a second value for the rounded border, complete the same fields on the right half of the popup.
      5. Click OK.
    7. In the Properties dialog, click OK.

    If Using Advanced View

    1. In the local toolbar, make sure the first button displays The button to change the stylesheet to the advanced view.. If the button displays The button to change the stylesheet to the simplified view. instead, then click it.
    2. In the upper-left corner of the Stylesheet Editor, click in the drop-down field and select The paragraph style category selected in the types of styles drop-down list..
    3. Select the appropriate paragraph style. For example, you can select the parent p tag, or you can select a class that you may have created for that tag (e.g., p.Tip, p.Note).
    4. From the Show drop-down list on the upper-right side of the editor, select Show drop-down set to display all properties in styles..
    5. (Optional) You can use the toggle button in the local toolbar to show properties below in a group view Stylesheet local toolbar button to show properties in a group view. or an alphabetical view Stylesheet local toolbar button to show properties in an alphabetical view..
    6. If you are using the grouped view, expand the Border group. 
    7. Locate and select the border-radius property that you want to change. Each corner (bottom-left, bottom-right, top-left, top-right) can be set separately (e.g., border-bottom-left-radius, border-top-right-radius). Even better, you can set the main border-radius property, which lets you specify the amount of curve for all four corners in one place.
    8. The area to the right of the property is used for selecting and entering values. If you know how to enter the information correctly, you can click in the value field and type it directly. Otherwise, click the ellipsis button Display more options. to the right of the property. Depending on the type of property, the appropriate controls and options display, allowing you to choose or enter values (e.g., select from a drop-down list, click a button, complete fields in a dialog or popup). If you completed values in a popup, click OK at the bottom of the box.

      In the popup, you can enter the amount of curve you want in the H field (for Horizontal) and the V field (for Vertical). If you are setting values for the main border-radius property, you will see a small icon in the upper-left corner of the popup. If you click this icon, the popup changes, showing individual H and V fields for the four corners (Top Left, Top Right, Bottom Left, Bottom Right). For more information on using multiple sets of border radius properties, see www.css3.info/preview/rounded-border/.

    9. If you are using the grouped view, expand the Table group. 
    10. For the border-collapse property, select separate.
    11. If you are using the grouped view, expand the Positioning group. 
    12. For the overflow property, select hidden.
  3. Click Save the active file. to save your work.

What’s Next?

After editing a style, you can apply it to content in a topic or snippet. See Applying Styles to Content.