How to Align Connected Shapes for Straight Horizontal Lines in Visio
Question details
The user wants to automatically align a connected shape with its container so that the right-angle connector line runs perfectly horizontal.

- Product
- Microsoft Visio
- Device & OS
- not provided
- Scenario
- Creating clear flowcharts or diagrams where connecting lines between containers and shapes need to appear straight and organized.
- Observed behavior
- When a shape is attached to an off-center connection point, the right-angle connector appears angled or jagged instead of perfectly horizontal.
Make sure your Microsoft Visio diagram is open and that the shapes you wish to align are already linked together with a right-angle connector.
Use the Align Top Command
This is the most precise method to ensure right-angle connectors run perfectly horizontal between a container and a connected shape without manual pixel-by-pixel dragging.
By aligning the boundaries of the shapes, Visio automatically adjusts the dynamic connector to run in a straight line, assuming the connection points are uniformly distributed.
Hold down the Ctrl key on your keyboard and click to select only the container and the connected shape you want to align.
Navigate to the Home tab on the Visio ribbon at the top of the screen.
Click on Arrange, select Align from the dropdown menu, and choose Align Top (or Align Middle, depending on your connection points).

Draw and Align Flowchart Shapes Easily with WPS Office
If you are looking for an accessible way to build beautiful flowcharts, WPS Presentation and WPS Writer offer built-in shapes, smart guides, and precise alignment tools to keep your connecting lines perfectly straight.
- 1. Insert Shapes: Open WPS Presentation, navigate to the Insert tab, click Shapes, and select the elements for your flowchart.
- 2. Connect the Shapes: Choose a line or connector from the Shapes menu and attach it to the anchor points of your shapes.
- 3. Align for Straight Lines: Hold Ctrl to select multiple shapes, go to the Drawing Tools tab, click Align, and select Align Middle to automatically straighten your connectors.

Frequently Asked Questions
Why is my Visio connector line zig-zagging instead of straight?
This happens when the shapes are not aligned on the same horizontal or vertical axis, or if they are attached to off-center connection points. Using the Align tools (e.g., Align Top or Align Middle) straightens the connector.
Can I align Visio shapes by their middle point instead of the top?
Yes. Select both shapes, go to Home > Arrange > Align, and choose Align Middle. This is often recommended if your shapes have different heights but you still want a straight horizontal connector.
How do I move a shape in Visio without misaligning the straight connector?
To constrain a shape's movement to a straight horizontal or vertical line, hold down the Shift key while clicking and dragging the shape with your mouse.




