Others

How to Adjust HTML Table Column Width in Power Automate

Bushra ParveenBushra Parveen Nov 2, 2026 868 views

Question details

The user needs to set a custom width for specific columns, such as the Details column, in an HTML table generated by a Power Automate flow.

How to Adjust HTML Table Column Width in Power Automate Emails
Product
Microsoft Power Automate
Device & OS
not provided
Scenario
Generating structured HTML tables containing source data for weekly automated emails.
Observed behavior
The default Create HTML table action produces standard output without custom column widths, requiring manual HTML or CSS intervention.
Before you start

Familiarize yourself with basic HTML tags and inline CSS attributes, as Power Automate requires manual styling implementation to override default table formatting in emails.

Solution 1Recommended

Apply CSS Styling to the HTML Table Output

Inject custom HTML and CSS styles into your flow's email action to explicitly define the width of specific table columns.

Since the default 'Create HTML table' action in Power Automate does not provide a visual interface to adjust column dimensions, you must use standard web styling techniques. Inline CSS is highly recommended to ensure the tables render correctly across different email clients like Outlook and Gmail.

1
Locate the Send an Email Action

Open your Power Automate flow and navigate to the step where the 'Send an email (V2)' action is configured to send the HTML table.

2
Switch to Code View

Click the 'Code View' (</>) button within the email body editor to switch from the standard rich-text view to raw HTML mode.

3
Inject Custom CSS

Add a <style> block above your dynamic table content, or use a 'Compose' action earlier in the flow to apply a Replace expression that inserts inline styles (e.g., style="width: 250px;") into the <th> or <td> tags of your target column.

4
Save and Test

Save your modified flow and execute a manual test run. Check the recipient inbox to confirm the HTML table displays with the adjusted column widths.

Apply CSS Styling to the HTML Table Output
Community Resources: If you are working with highly complex dynamic tables, Microsoft's Power Automate Community forums offer excellent expression templates and advanced CSS formatting examples.
Free Microsoft Office alternative

Manage Your Source Data Seamlessly with WPS Office

While Power Automate handles your workflow automation, WPS Office provides a lightweight, highly compatible alternative to Microsoft Office for preparing, formatting, and analyzing the underlying spreadsheet data before it triggers your flows.

Fully compatible with Microsoft Excel (.xlsx) formats and table structures.Lightweight architecture ensures ultra-fast opening and editing of large datasets.Familiar ribbon interface requires absolutely no learning curve for Microsoft Office users.Built-in advanced data formatting tools available completely for free.
microsoft office alternative - wps office

Frequently Asked Questions

Can I adjust Power Automate table widths without writing code?

No. The built-in 'Create HTML table' action generates basic, unstyled HTML. To adjust specific properties like column width or background color, you must utilize HTML and CSS styling within the flow.

Why are my CSS column widths ignored in Outlook?

Certain desktop email clients, including older versions of Outlook, have limited support for complex CSS stylesheets. To ensure your table columns size correctly, always use inline CSS attributes (e.g., <th style="width:150px;">) directly on the elements.

How do I format the actual data inside the HTML table columns?

Data formatting should be done before creating the HTML table. Use a 'Select' action with mapping, applying expressions like formatDateTime() or formatNumber() to your array elements before passing them to the Create HTML table action.