Word table left padding

I have a table cell that I can’t seem to center the text accurately. There’s a minimum padding or something I can’t get rid of or shrink in any way. I’ve tried recreating the table, but with any small widths, it still seems there’s an uneditable padding.

Is there any way to edit this padding?

enter image description here

asked May 6, 2013 at 2:09

Ben's user avatar

1

In Microsoft Office 365 Pro on Windows 10, I found two different ways of doing this, depending on what you find easier.

The first is to select all the text in the cell and edit the space before and after for top and bottom in the Layout tab (see screenshot), and adjust the carets on the rulers as indicated above for left and right.

MS Word Table Padding by Text spacing method

The second option is to move the mouse to the left of the table until the mouse pointer turns to a right-facing arrow and then click once to select the whole table. The Table Tools menu becomes available. Click the dark blue Layout tab under Table Tools (not the lighter medium blue Layout tab for the overall document) and then click Cell Margins. Once the Cell Margins popup is displayed (see screenshot) you can then edit the top, bottom, left and right.

MS Word Table Padding by Cell Margins method

answered Feb 24, 2017 at 16:08

phpguru's user avatar

phpguruphpguru

5285 silver badges7 bronze badges

I have tested this on MS Word 2013, so I don’t know if this would work on other version.

  1. Create the table

  2. Select the Cell (not sure if this would work for whole table)

  3. Right Click on the selected Cell and choose Table Properties

  4. Under Table Properties — Cell — Choose «Options»

  5. Cell Margins — untick «Same as the whole table» and then drop the margin to 0cm for left and right.

  6. This should drop the left margin to touching the line. And then you can manually move the line to do a fit like the image below. I tried double-click to let it auto-fit at 0cm margin, but its not doing it, so have to manually move it to fit to that size.

    enter image description here

I know this is not the best way of doing it, but it is a workaround. Maybe you can find a method to do it for the whole table.

Hope it helps.

Darius

Community's user avatar

answered May 6, 2013 at 2:35

Darius's user avatar

DariusDarius

5,3282 gold badges28 silver badges24 bronze badges

1

I’m using Word 2010. Think in terms of Microsoft Word terminologies; there is no cell padding as in HTML, but there is Cell Margin, and Right Indent (“right cell padding” = right indent + cell margin). The default for right indent is zero, but if you’re editing someone else’s document — as I was when I stumbled onto this post — you might need to change the Right Indent and Cell Margin. The cell margin is set as noted above in Table Properties. To set the Right Indent use these steps:

  1. If necessary, show the Ruler via View tab > Ruler
  2. Click a cell in the column you want to change. The Right Indent icon will appear in that column’s Ruler section

Before setting Right Indent

  1. Drag the Right Indent icon to the desired position – be careful it’s easy to insert a tab stop if you don’t start the drag from the centre of the Right Indent icon

After setting Right Indent

In order to set equal column widths place the insertion icon in the table then Table Tools tab > Layout > Distribute Columns, or just pretty up as described by Darius

Burgi's user avatar

Burgi

6,45714 gold badges40 silver badges52 bronze badges

answered May 4, 2016 at 19:44

Steven Atkins's user avatar

To adjust padding for the whole table (in Word 2013):

  1. Select entire table
  2. Click ‘LAYOUT’ Ribbon Tab (tab appears near top right of screen after selecting the table)
  3. Click Properties button to view the table’s properties
  4. On the ‘Table’ tab of properties popup, click ‘Options…’ button
  5. Edit default cell margins

answered Mar 30, 2016 at 17:02

public wireless's user avatar

Cell Margins and Cell Spacing are two important settings in any Microsoft Word Table but they aren’t used much and not well understood.

Cell margins are the spaces between your text and the edge of the cell. They can be set separately for the top, bottom, and either side of the cells.

To change the cell margins, we again click in the table and go to the Layout tab on the right. Then click Cell Margins in the Alignment group.

In the Table Options dialog that opens, use the spinners to incrementally change each of the four margins, or simply type in the margin that you want into each field; Top, Bottom, Left or Right.

The margins we’ve selected above are quite large, just to show you clearly how his setting changes your table.  Here’s the large cell margins (left) compared to zero cell margins (right).

You can, of course have different margins on different sides:

Individual, Row or Column Cell Margins

Table cell margins can be changed for a row, column or even a single cell, but it’s nowhere near the main Cell Margins ribbon button.

Select the column, row or cell you want to change then go to Table Layout | Table | Properties | Cell | Options.  UNcheck the box ‘Same at the whole table’ then change the margin settings.

Here’s a single row, highlighted a little by increasing the top & bottom cell margins.

Why Adjust Table Cell Margins?

Cell margins are useful to separate lines in a table, especially when there’s no gridlines. Change the Top & Bottom cell margins to separate the lines and improve readability.

When space is tight, reducing the default left & right cell margins can help fit a table or contents into the available space.

Cell Spacing Tricks in Word Tables

Word’s Table Options have an interesting choice, Cell Spacing. While cell margins are the space between the text and the edge of the cell, cell spacing puts space around each of the cells.

Cell spacing has a surprising effect on the look of a Word Table with single line borders.

Go to Table | Alignment | Cell Margins | Default cell spacing | Allow spacing between cells.

The default is OFF with no spacing.

Here’s how a Table looks using a standard single line border but increasing the cell spacing from the default, Zero.

Changes to Table Borders

As you can see, the single line table border becomes a twin gridline just by adding cell spacing to the same table.

Word table with Footnotes

Merge Cells in Word tables

Word tables for formatting magic

Indexing ‘bug’ in Word tables

If the document contains tables, it must be formatted according to the requirements accepted by your college, university, company, established on the project, etc. Most requirements, including accessibility, tell that tables should contain titles, column headers, alternate text, etc. In addition, tables must be correctly positioned on the page, using the pre-defined alignment, padding, and text-wrapping guidelines.

Usually, the table contains the following basic components:

  • The table number (e.g., Table 1) and the title appear above the table body (see how to create a caption for tables).
  • The table includes column headings, including a stub heading (heading for the leftmost, or stub, column). Some tables also include column spanners, decked heads, and table spanners. See how to format tables in a Word document.
  • The table body contains all the rows and columns of a table (including the headings row). A cell is the point of intersection between a row and a column. See how to select and format table elements.
  • All types of notes (general, specific, and probability) appear below the table if there are notes. Notes describe contents of the table that cannot be understood from the table title or body alone (e.g., definitions of abbreviations, copyright attribution, etc.).

Example of the table in Word 365

See also how to create cross-references to a table.

Align the table on the page

By default, Word aligns the table to the Left. If you want to change an alignment of the table on the page, select it and do one of the following:

  • On the Home tab, in the Paragraph group, select the alignment you prefer:

    Paragraph group in Word 365

  • Open the Table Properties dialog box by doing one of the following:
    • On the Table Layout tab, in the Table group, click the Properties button:

      Table Properties button in Word 365

    • Right-click the table and select Table Properties… in the popup menu:

      Table Properties in popup menu Word 365

    In the Table Properties dialog box, on the Table tab, in the Alignment section, select the option you prefer:

    Table Properties dialog box in Word 365

  • Press the keyboard shortcuts:
    • Ctrl+L to align a table to the Left (by default),
    • Ctrl+E to Center the table,
    • Ctrl+R to align a table to the Right.

Add indent from left

The Indent from left controls the distance of the table from the left margin. To add the Indent from left, do one of the following:

  • On the Home tab, in the Paragraph group, click the Increase Indent button:

    Increase Indent button in Word 365

  • Open the Properties dialog box. In the Table Properties dialog box, on the Table tab, in the Alignment section, type or choose the value you need in the Indent from left field:

    Indent from left in Table Properties dialog box Word 365

    Note: The Indent from left field is active only for the Left alignment.

For example, the table with a left indent 0.5 inches:

Table with a left indent in Word 365

Text Wrapping for a table

Word offers to customize the text wrapping style for a table, as well as for figures. To customize a text wrapping style, do the following:

   1.   Select a table.

   2.   Open the Table Properties dialog box. In the Table Properties dialog box, on the Table tab, in the Text wrapping section:

  • Select None to disable text wrapping for the table
  • Select the Around option to have text wrapping around the table. Then click the Positioning… button for more customization:

    Positioning in Table Properties dialog box Word 365

    In the Table Positioning dialog box:

    Table Positioning dialog box in Word 365

Position a table

  • In the Horizontal sections, specify:
    • Position to the Left, Right, Center, Inside, or Outside,
    • Relative to the Margin, Page, or Column.

    For example, with Position to the Right relative to Margin:

    Table with Position to the Right relative to Margin in Word 365

  • In the Vertical section, specify:
    • Position to the Top, Bottom, Center, Inside, or Outside,
    • Relative to the Margin, Page, or Column.

    For example, with Position to the Top relative to Page:

    Table with Position to the Top relative to Page in Word 365

Increase the space between text and table

  • In the Distance from surrounding text section, enter custom values for the distance between the text and the table independently for:
    • Top (0 by default),
    • Bottom (0 by default),
    • Left (1.13 inches by default),
    • Right (1.13 inches by default).

    For example, with the 0.3-inch distance on all sides:

    Table with the 0.3-inch distance on all sides in Word 365

Note: See also how to change a distance within a table.

Text wrapping options

  • In the Options section:
    • The Move with text option moves the table along with the text in which it is located.

      Select the Move with Text option if the text is directly related to the table data. The table is vertically aligned to the related paragraph around it. If the table data applies to the whole document, keep the Move with Text option unselected.

    • Allow overlap allows to layer table on top of each other.

Position a large table

Control where a table is split

When working with a long table, or when a table needs to be placed at the bottom of the page, splitting up a table into two separate tables is necessary. By default, if a page break occurs within a large row, Microsoft Word allows a page break to split the line between two pages (see How to prevent a table break between pages).

To insert a table break at a specific location, position the cursor on the cell on the row, or select the row that should appear on the next page, then do one of the following:

  • Press Ctrl+Enter.
  • On the Table Layout tab, in the Merge group, click the Split Table button:

Split Table button in Word 365

Be careful! Word applies the chosen style to the new table. If you Undo the table splitting, the formatting may not be Undone correctly.

Add an Alternative text (Alt Text)

Most requirements recommend adding alternative text for visual objects, including tables (see how to turn off automatically creating the Alternative text).

To add an alternative text for a table, do the following:

   1.   Select a table.

   2.   Do one of the following:

  • On the Table Layout tab, in the Table group, click the Properties button.
  • Right-click the table and select Table Properties… in the popup menu.

   3.   In the Table Properties dialog box, on the Alt Text tab:

Split Table button in Word 365

  • In the Title field, type a title, if necessary.
  • In the Description field, fill the description for the table.
  • Click the OK button.

Here’s an issue I found in a document I was editing this week—someone had set most of the tables to have 0 cm padding for the left and right margins of each cell (the default is 0.19 cm for metric users). This meant the text butted right up against the cell borders (it was most noticeable on the left as I was using ragged right justification). I needed to change the cell padding back to 0.19 cm.

This is easy enough to do if you’ve only got one or two tables to fix (select the table, right-click and select Table Properties; on the Table tab, click Options, then set the left and right margins to 0.19 cm; click OK to save and exit).

But this was a nearly 300-page document with hundreds of tables, many of which had their margins set to 0 cm. Off to Google to see if someone had a quicker way. They did. I tested the macro and modified it a bit for my purposes, then ran it on a copy of my big document and fixed the problem on all tables in my document in seconds.

Notes:

  • This macro will set the left and right margin padding for ALL tables in your document. In most cases that’s what you’ll want, but if you want some tables to have different padding, change those tables or cells manually after running this macro.
  • ALWAYS test on a copy of your document before running the macro on your main document!

Here’s the macro (I suggest you copy it from here so that you get all of it—on some devices, the text may go off the screen):

Sub TablePadding()
'
' TablePadding Macro
' Adapted from a macro by Greg Maxey: https://answers.microsoft.com/en-us/msoffice/forum/all/vba-code-to-set-all-word-tables-left-cell-margin/420672d4-d294-40a9-8832-7bebb3ab9bf0
' Set left and right cell padding for ALL table cells to 0.19 cm
'
Dim oTbl As Word.Table
 For Each oTbl In ActiveDocument.Tables
    oTbl.LeftPadding = CentimetersToPoints(0.19)
    oTbl.RightPadding = CentimetersToPoints(0.19)
 Next

Thanks to Greg Maxey for the original macro that I modified. If you want to change the padding to be smaller or larger, change the 0.19 value to a smaller or larger number.

title keywords f1_keywords ms.prod api_name ms.assetid ms.date ms.localizationpriority

Table.LeftPadding property (Word)

vbawd10.chm156303475

vbawd10.chm156303475

word

Word.Table.LeftPadding

ad047ad0-7a50-6905-9e60-3a2275e49a62

06/08/2017

medium

Table.LeftPadding property (Word)

Returns or sets the amount of space (in points) to add to the left of the contents of all the cells in a table. Read/write Single.

Syntax

expression.LeftPadding

expression Required. A variable that represents a ‘Table’ object.

Remarks

The setting of the LeftPadding property for a single cell overrides the setting of the LeftPadding property for the entire table.

Example

This example sets the left padding for the first table in the active document to 40 pixels.

ActiveDocument.Tables(1).LeftPadding = _ 
 PixelsToPoints(40, False)

See also

Table Object

[!includeSupport and feedback]

Понравилась статья? Поделить с друзьями:
  • Word table left indent
  • Word table inside table
  • Word table in line with text
  • Word table grid style
  • Word table from xml