Adjusting Column Width and Row Height





Adjusting Column Width and Row Height

Once you have your table in place, you may want to make some adjustments. Tables can shape-shift in a number of ways to work with whatever you decide to toss into them. Even though tables can automatically change shape to accommodate the contents, it's still good to know how to adjust them manually. You can change the width of individual columns and the height of the rows in your table.

To adjust the width of a column, move your mouse cursor over one of the vertical lines in the table. The cursor changes to a two-headed arrow (Figure). Drag the line where you want it. The entire line from top to bottom of the table moves in one motion. If, for some reason, just one piece of the line moves, that means you selected a cell or two before you dragged the line. When a cell is selected, your modifications affect only the selected cell.

Figure. When you hold the cursor over a line, the cursor changes to a double-headed arrow. Drag one of the lines in your table to resize a row or column. The dotted line helps you line up the edges of the cell with other objects in the table or on the page.


Changing the height of a row is similar. Just click to grab one of the lines, and then drag it where you want. You'll probably find that it's less necessary to change row height than it is column width, since rows automatically adjust to accommodate the lines of text. As you type into a cell and your words create a new line, the row height increases to make room.

Inserting Columns and Rows

Often when you're first creating a table, it's difficult to know how many rows and columns you'll need. It's not a major issue, because it's easy enough to add and delete rows and columns. You can make these changes using buttons on the ribbon, with keyboard shortcuts or with the handy pop-up menu that appears when you right-click within the table.

When you're inserting rows or columns, the first step is to click somewhere in the table to position the insertion point. Clicking in the table does two important things. First, the Table Tools contextual tab doesn't make an appearance unless the insertion point is inside a table. Second, the insertion point serves as a reference point so you can tell Word to add the row or column before or after that spot.

With the insertion point in place, you can choose one of the commands from the Table Tools | Layout Rows & Columns group. The menu commands and their icons present a clear picture of the options (Figure): You can delete individual cells, or rows, or columns, or the entire table.

Figure. The commands to insert and delete rows and columns are neighbors in the Table Tools | Layout Rows & Columns group. Make sure you click within a table, or you won't see the Table Tools contextual tabs.


All the options shown on the ribbon have keyboard equivalents. Here's a table of the commands and the ways to use them:

Command

Ribbon Command

Keyboard Shortcut

Insert row above

Table Tools | Layout Rows & Columns Insert Above

Alt+JL, A

Insert row below

Table Tools | Layout Rows & Columns Insert Below

Alt+JL, E

Insert column left

Table Tools | Layout Rows & Columns Insert Left

Alt+JL, L

Insert column right

Table Tools | Layout Rows & Columns Insert Right

Alt+JL, R


A right-click within a table makes a shortcut menu appear, and as usual Word's pretty smart when it comes to figuring out what you're trying to do. So, if you've selected an entire row before you right-click, then the shortcut menu gives you options to insert or delete rows, as shown in Figure. Just take your pick from the list.

Figure. If you've already got your mouse in hand, here's an easy two-step way to add a row. Move the mouse into the left margin, and then click to select an entire row. Right-click to display the shortcut menu, and then choose Insert Insert Rows Below or Insert Rows Above. You can create columns with a similar technique.


Deleting Cells, Columns, Rows, and Tables

The techniques to delete columns and rows pretty much mirror the ways you insert them. Deleting individual cells is a little trickier, since plucking cells out of the middle of your table tends to shift things around. Easiest of all is deleting the entire table. As long as your insertion point is somewhere in the table, you can use Table Tools | Layout Delete Delete Table or the shortcut Alt+JL+DT.

Using the Delete menu (Table Tools | Layout Rows & Columns; see Figure), you can delete any element of a table from the entire table down to groups of rows and columns on down to a single cell. Just select the bits and pieces you want to remove, and then choose the command. You can select several rows, and then delete them all at once. Keyboard shortcuts are also available for deleting table parts:

Command

Ribbon Command

Keyboard Shortcut

Delete table

Table Tools | Layout Rows & Columns Delete Delete Table

Alt+JL, DT

Delete columns

Table Tools | Layout Rows & Columns Delete Delete Columns

Alt+JL, DC

Delete rows

Table Tools | Layout Rows & Columns Delete Delete Rows

Alt+JL, DR

Delete cells

Table Tools | Layout Rows & Columns Delete Delete Cells

Alt+JL, DD


Deleting cells

Deleting cells is sort of like pulling a brick from the middle of a wall. Other bricks have to move in to take its place. But it doesn't happen at random: Word lets you choose how you want cells to fill in the space. When you give the command to delete a cell or a group of cells (Alt+JL, DD), Word shows a dialog box asking whether you want to pull cells up or bring them over to the left (Figure).

Figure. Top: The cell second from the left and second from the top is selected for deletion.
Middle: After invoking the Delete command, Word asks for advice on how to shift the rest of the cells.
Bottom: With the "Shift cells left" button selected, the cells in the second row shift over from the right.



Note: Selecting a cell and then pressing Delete on the keyboard deletes the contents of the cell but not the cell itself. And that's just fine, because most of the time that's exactly what you want.


 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows