![how to do horizontal alignment in word how to do horizontal alignment in word](https://i2.wp.com/www.alphr.com/wp-content/uploads/2021/03/5-39.png)
Advertisement In the Table Properties window that opens, you can choose left, center, or right alignment by clicking those options in the Alignment section. We have set vertical alignment here − BoxLayout. Right-click anywhere inside the table and then choose the Table Properties command from the context menu that appears. 4 enter a value for the 'right align' tab, I used 6.94. 3 the end result will be the right align tab shown at 3.
![how to do horizontal alignment in word how to do horizontal alignment in word](https://www.howtogeek.com/wp-content/uploads/2019/10/Center-text-in-Word.png)
2 click on the tabs button in bottom right of the paragraph dialog. 1 click on the Paragraph dialog launcher. In the top tabs, click on View, then check the box for Ruler. When it is set, you just use one tab character to space the lines, Word will handle the alignment. To view the horizontal ruler across the top of your Word document and the vertical ruler along the left edge of your document, you must be in Print Layout view. For vertical alignment, create a frame and set the layout using the BoxLayout manager − JFrame frame = new JFrame() įtDefaultCloseOperation(JFrame.EXIT_ON_CLOSE) įrame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS)) Ībove, we have set the BoxLayout to set the alignment since it is a layout manager that allows multiple components to be laid out either vertically or horizontally. The horizontal and vertical rulers in Word are often used to align text, graphics, tables, and other elements in a document.