You can add borders around a QR code, specifying the border size, color, and type.
This can be done through styles or by using local formatting. Using styles is usually recommended because the setting is automatically applied to any content using that style
[Menu Proxy — Headings — Online — Depth3 ]
How to Use a Style to Add a Border to QR Codes
- From the Content Explorer, open the stylesheet that you want to modify.
- In the local toolbar, make sure the first button displays . If the button displays instead, then click it.
- In the upper-left corner of the editor, click in the drop-down field and select .
- Select the MadCap|qrCode style.
- From the Show drop-down list on the upper-right side of the editor, select .
- (Optional) You can use the toggle button in the local toolbar to show properties below in a group view or an alphabetical view .
- If you are using the grouped view, expand the Border group.
Locate and select the border property you want to change. Each side (bottom, left, right, top) has separate properties that you can set for the color, style, and width (e.g., border-bottom-style). You can set these properties individually, or you can set the primary property for each side (e.g., border-bottom), which lets you specify the color, style, and width in one place. If you plan to have the same settings for all sides, you can use the main border property to set the color, style, and width the same. The border-radius properties let you create curved edges on the border by providing horizontal and vertical values.
When you click next to a border property, a popup appears. Use the fields in the popup to define additional properties such as color, width, style, and thickness, then click OK.
- Click to save your work.
How to Use Local Formatting to Add a Border to a QR Code
Open the content file.
- Right-click on the QR code.
- From the drop-down list, select Edit QR Code. The Edit QR Code dialog opens.
- Select the Borders & Margins tab.
- Set the options in the Borders section.
Click in any of the individual fields (Left, Right, Top, Bottom) to specify the settings for the border. If you click the down arrow to the right of all the fields, the settings will be applied to all of the border fields.
When you click that down arrow or in one of the individual fields, a small popup displays.
- Use the lower-left area of the popup to enter a number for the border thickness.
- Use the lower-middle area to select a unit of measurement (e.g., point, pixel, centimeter) for the number you entered.
See Units of Measurement.
- Use the upper-right area to select a color for the border.
- Use the lower-right area to select a line type (e.g., solid, double, dashed) for the border.
- Click OK.
- In the dialog, click OK.
- Click to save your work.