# Change Column Widths

There are several ways to quickly change the width of columns, particularly when your table has a large number of columns.

The simplest way is to hover over the column header that needs to be resized and drag the handle to the desired size.

<figure><img src="/files/ULGt2CE5aEtlGkK57ReI" alt=""><figcaption><p>Drag column headers to resize</p></figcaption></figure>

There are other preset and manual column width adjustment options available from the toolbar.

1. ‘Fit to header’ resizes the columns to fit the column header.
2. ‘Fit to content’ resizes the columns to fit the column contents.
3. The 'Manage Columns' menu allows you to manually specify the width for all columns in pixels.

Let's explore each of them with an example.

In the 'Home' tab, click on the 'Auto fit' icon as highlighted. You can see the options in the dropdown.

<figure><img src="/files/t2wgHAetoMmx8KWIjVqT" alt=""><figcaption><p>Autofit options</p></figcaption></figure>

## 1. Fit to Header <a href="#id-1.-fit-to-header" id="id-1.-fit-to-header"></a>

Clicking on the **Fit to Header** option resizes each column to fit its column header.

<figure><img src="/files/aq4HtJegJGt9cBIhrqhQ" alt=""><figcaption><p>Fit to header</p></figcaption></figure>

## 2. Fit to Content <a href="#id-2.-fit-to-content" id="id-2.-fit-to-content"></a>

Clicking on the **Fit to Content** option resizes each column to fit its content.

<figure><img src="/files/ZumdxPfJDWhggaal5DVg" alt=""><figcaption><p>Fit to content</p></figcaption></figure>

## 3. Manage Column Width Manually

Click on **Manage Columns**. This menu allows you to enter the width for specific columns in pixels.

Enter the column width in pixels for the columns that you want to adjust.

<figure><img src="/files/UeRgv8qfI294OaDdKWgH" alt=""><figcaption><p>Set column width manually in pixels</p></figcaption></figure>

You can use the **Reset** option to restore the column widths to their original values before any changes were made.

<figure><img src="/files/Rf9oiyNVSwvreDr2DDP8" alt=""><figcaption><p>Reset to initial values</p></figcaption></figure>

## 4. Lock column width <a href="#id-5.-lock-column-width" id="id-5.-lock-column-width"></a>

After you have adjusted the column widths as desired, you can lock the set column sizes to prevent users from changing them intentionally or unintentionally.

Click on the lock icon as shown below.

<figure><img src="/files/rTpYv4ueSJAPTlGKT7ma" alt=""><figcaption><p>Lock Column Widths</p></figcaption></figure>

When the columns are locked, all options for adjusting column and row width are greyed out and unavailable, including the drag and adjust option.

<figure><img src="/files/QPKWimLFYB2HEYjboXm8" alt=""><figcaption><p>Locked column width</p></figcaption></figure>

<figure><img src="/files/tyVs1JJypLgsaJfLgmWa" alt=""><figcaption><p>Locked row and column width options</p></figcaption></figure>

To unlock and enable the column (and row) adjustments, click on **Manage Columns** and the lock icon again.

<figure><img src="/files/SB7Pt9qUloAvK8iHunMy" alt=""><figcaption><p>Unlock column width options</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.powertable.com/explore-powertable/working-with-powertable/column-setup/change-column-widths.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
