The fastest way to add a vertical line
The simplest method is to use the Insert menu. Open your document, click where you want the line to appear, then go to Insert > Line. Google Docs will place a horizontal line by default. To rotate it vertical, click the line once to select it, then drag one of the corner handles to rotate it 90 degrees until it stands upright.
If you need the line in a specific position on the page, this method works well because you can move it after inserting it. Click and drag the line to reposition it anywhere in your document.
Key Takeaways
- Insert a line through the Insert menu, then rotate it 90 degrees by dragging a corner handle to make it vertical.
- Use a table with a single column and a right border if you need a vertical line that spans multiple rows of text.
- Drawing a vertical line with the drawing tool gives you full control over thickness, color, and exact placement.
- Vertical lines work best for dividing sections, creating sidebars, or separating columns of information in your document.
Using a table to create a vertical divider
If you want a vertical line that runs alongside text or spans several lines, a table is often the better choice. Insert a two-column table by going to Insert > Table, then choose 2 columns and as many rows as you need. Type your content in the left column.
To add the vertical line between columns, right-click the table, select Table properties, then click the Borders tab. Set the border color and width, then uncheck all borders except the one between the two columns. This creates a clean vertical line that stays aligned with your text.
This approach is useful when you're creating a two-column layout, a sidebar, or a document where text needs to sit beside a vertical divider. The line will move with your content if you add or remove text.
Drawing a custom vertical line
For more control over the line's appearance, use the drawing tool. Go to Insert > Drawing > New. In the drawing window, click the Line tool (the icon that looks like a diagonal line), then hold Shift while dragging to draw a perfectly straight vertical line. Holding Shift constrains the line to 90-degree angles.
Once you've drawn the line, you can change its color, thickness, and style. Click the line, then use the toolbar at the top of the drawing window to adjust the stroke color and weight. When you're done, click Save and close to insert the drawing into your document.
The drawing method is best when you want a line that looks exactly the way you envision it — thicker, thinner, colored, or dashed — and when you don't need it to interact with text or table cells.
Positioning a vertical line next to text
If you've inserted a line and want text to wrap around it, you'll need to adjust the line's text wrapping settings. Click the line to select it, then click the three-dot menu that appears. Choose Wrapping and select either Wrap text or Behind text depending on whether you want the line in front of or behind your content.
For precise positioning, you can also use the Position option in that same menu. This lets you anchor the line to a specific location on the page or relative to a paragraph, so it stays in place even if you edit the text around it.
Adjusting line thickness and color
Once your vertical line is in place, you can customize its appearance. Click the line to select it, then look for the stroke weight and color options. If you inserted the line through the Insert menu, a small toolbar will appear with options to change the color and thickness.
For lines created with the drawing tool, the customization options are more extensive. You can make the line dashed, dotted, or solid, and choose from a wider range of colors and thicknesses. This makes the drawing method ideal if you need a line that matches a specific design or stands out visually in your document.
When to use each method
Use the Insert > Line method when you need a simple, quick vertical line that doesn't interact with text. This is the fastest option and works well for dividing sections or creating visual breaks in your document.
Use a table when you have text or content that needs to sit on both sides of the vertical line, or when the line needs to span multiple rows. Tables keep everything aligned and move together as a unit.
Use the drawing tool when you need precise control over the line's appearance — color, thickness, style — or when you're creating a custom design. This method takes a bit longer but gives you the most flexibility.
Frequently Asked Questions
Can I make a vertical line that spans the entire page?
Yes. Insert a line, then drag the corner handles to make it as long as you need. You can also use the Position menu to anchor it to the page itself rather than to a specific paragraph, which keeps it in place as you edit.
How do I delete a vertical line I no longer need?
Click the line once to select it, then press the Delete key. If the line is part of a table, right-click the table, go to Table properties, and adjust the borders to remove it.
Can I make a dashed or dotted vertical line?
Yes, but only with the drawing tool. Insert a drawing, draw your line, then click it and look for the line style options in the toolbar. You can choose solid, dashed, or dotted from there.
What's the difference between a line and a border?
A line is a separate object you insert and position independently. A border is part of a table or text box. Borders are better for structured layouts; lines are better for simple visual dividers.
Can I make a vertical line transparent or semi-transparent?
Google Docs doesn't offer transparency settings for lines directly. If you need a subtle line, use a light gray color instead of black, or use a thinner stroke weight to make it less prominent.