Word.Tips.Net Welcome toWord.Tips.Net

Helpful Links

Tips.Net Home
WordTips Home

Ask a Word Question
Make a Comment

Tips.Net Store

WordTips FAQ
WordTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

Newest Tips

Arranging Document Windows

Specifying a Backup Location

Controlling Chart Gridlines

Merging Table Cells

Collapsing and Expanding Subdocuments

Zooming With the Keyboard

Initiating a New Search

 

Adding Vertical Lines at the Sides of a Word

Summary: Vertical lines are even easier to add around a word than are horizontal lines. There are a variety of methods you can use to add the lines, and only a few of them include any drawing. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

Word allows you to easily add all sorts of flourishes to the text in your document. If you want to add vertical lines at the left and right of a word (perhaps for a page title), you can do so easily using any one of several different methods.

One way is to use the "pipe" character before and after your word. On most keyboards the pipe, or vertical bar, is a shifted version of the \ character. Type the pipe, a few spaces, the word, the same number of spaces, and then another pipe character. You can then center the paragraph.

If you are comfortable with the use of fields in a document, you could also try using the pipe character with the EQ field. Just insert a set of field braces (by pressing Ctrl+F9) and then making sure the field looks like this:

{eq \b \bc\| (  myword  )}

When you collapse the field you end up with "myword" centered between the pipe characters.

Another method is to simply type your word and then format the paragraph so that it has borders at the left and right sides. Follow these steps if you are using Word 2007:

  1. Make sure the insertion point is within the word for which there should be vertical lines on both sides.
  2. Display the Home tab of the ribbon.
  3. Click the down-arrow next to the Borders tool in the Paragraph group and then choose Borders and Shading. Word displays the Borders and Shading dialog box. (Click here to see a related figure.)
  4. Make sure the Borders tab is selected.
  5. Use the controls in the dialog box to add the desired border to both the left and right sides of the paragraph.
  6. Click on OK.

If you are using an older version of Word, follow these steps:

  1. Make sure the insertion point is within the word for which there should be vertical lines on both sides.
  2. Choose Borders and Shading from the Format menu. Word displays the Borders and Shading dialog box.
  3. Make sure the Borders tab is selected.
  4. Use the controls in the dialog box to add the desired border to both the left and right sides of the paragraph.
  5. Click on OK.

At this point you should see the borders on both sides of the paragraph. However, they are probably too far from the text, as the paragraph extends all the way from the left margin to the right. (This means that the borders appear at the left and right margins.) Adjust the left and right indents of the paragraph so that the vertical lines move in closer to the center. You can also adjust the other settings for the paragraph formatting (like Space Before and Space After) to get the paragraph exactly where you want it.

You can select the word itself and raise it or lower it in relation to the bordering lines in this manner:

  1. Select the word you want to adjust.
  2. Display the Font dialog box. (Choose Format | Font or, in Word 2007, press Ctrl+D.)
  3. Make sure the Character Spacing tab is selected. (Click here to see a related figure.)
  4. Using the Position drop-down list, choose either Raised or Lowered, as desired.
  5. Using the By box (to the right of the Position drop-down list) specify how far, in points, the text should be raised or lowered.
  6. Click OK.

Using the paragraph borders in this manner can require a lot of trial and error to get everything just right. If you use a table instead of a regular paragraph, the positioning is just a bit easier. Simply create a centered single-cell-table and make sure the cell is wide enough to contain the word you want. When you center the word in the table cell, you can then add borders to the left and right sides of the cell. Finally, you'll want to vertically adjust the word within the cell by following these steps if you are using Word 2007:

  1. Make sure that the paragraph within the table cell is formatted so there is no space before or after.
  2. Make sure the insertion point is within the word in the cell.
  3. Display the Layout tab of the ribbon.
  4. In the Table group click the Properties tool. Word displays the Table Properties dialog box.
  5. Make sure the Cell tab is displayed. (Click here to see a related figure.)
  6. In the Vertical Alignment area click Center.
  7. Click OK.

Follow these steps if you are using an older version of Word:

  1. Make sure that the paragraph within the table cell is formatted so there is no space before or after.
  2. Make sure the insertion point is within the word in the cell.
  3. Choose Table Properties from the Table menu. Word displays the Table Properties dialog box.
  4. Make sure the Cell tab is displayed.
  5. In the Vertical Alignment area click Center.
  6. Click OK.

Finally, you could create the desired lines by simply drawing the vertical lines you want. This is particularly helpful if you want the lines to be "fancy" in some way—a way that can only be achieved through using the shapes available in Word. Draw two of the same lines, place your word in a text box, adjust the lines and text box so all elements are in the desired relative positions, and then select all three items and group them. This last step is particularly important since it will ensure that the relative positions of the elements don't move around later.

Tip #6764 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007

Create Rock-Solid Lists! Bulleted and numbered lists can help make your writing clearer and easier to follow. If not done properly, however, they can be a nightmare to work with. Discover the ins and outs of Word's lists with this great reference available in two versions.
 
Check out Word Bullets and Numbering today!