# New-HTMLTabStyle

Creates a new HTML tab style with customizable options.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates a new HTML tab style with customizable options.

## Syntax

```
New-HTMLTabStyle
[-Align <left|right|center|justify>]
[-AlignContent <String>]
[-AlignItems <stretch|flex-start|flex-end|center|baseline>]
[-BackgroundColor <String>]
[-BackgroundColorActive <String>]
[-BackgroundColorActiveTarget <String>]
[-BorderBottomColor <String>]
[-BorderBottomColorActive <String>]
[-BorderBottomStyle <String>]
[-BorderBottomStyleActive <String>]
[-BorderBottomWidth <medium|thin|thick>]
[-BorderBottomWidthActive <medium|thin|thick>]
[-BorderColor <String>]
[-BorderRadius <String>]
[-BorderStyle <String>]
[-Direction <row|row-reverse|column|column-reverse>]
[-FontFamily <String>]
[-FontFamilyActive <String>]
[-FontSize <String>]
[-FontSizeActive <String>]
[-FontStyle <normal|italic|oblique>]
[-FontStyleActive <normal|italic|oblique>]
[-FontVariant <normal|small-caps>]
[-FontVariantActive <normal|small-caps>]
[-FontWeight <String>]
[-FontWeightActive <String>]
[-JustifyContent <flex-start|flex-end|center>]
[-LinearGradient]
[-RemoveShadow]
[-RowElements <Int32>]
[-SlimTabs]
[-TextColor <String>]
[-TextColorActive <String>]
[-TextDecoration <line-through|overline|underline>]
[-TextDecorationActive <line-through|overline|underline>]
[-TextTransform <uppercase|lowercase|capitalize>]
[-TextTransformActive <uppercase|lowercase|capitalize>]
[-Transition]
[-Wrap <wrap|nowrap|wrap-reverse>]
[<CommonParameters>]
```

[#](#member-3aa550d137b027ea37387f6d)

Parameter set: `Manual`

```
New-HTMLTabStyle
[-Align <left|right|center|justify>]
[-AlignContent <String>]
[-AlignItems <stretch|flex-start|flex-end|center|baseline>]
[-Direction <row|row-reverse|column|column-reverse>]
[-JustifyContent <flex-start|flex-end|center>]
[-RowElements <Int32>]
[-Style <String>]
[-Wrap <wrap|nowrap|wrap-reverse>]
[<CommonParameters>]
```

[#](#method-new-htmltabstyle-string-string-string-string-string-int32-string-string)

Parameter set: `Styled`

## Description

This function allows you to define various styling options for HTML tabs, such as font size, color, weight, style, background color, border properties, and more.

## Examples

### Example 1

```powershell
New-HTMLTabStyle -FontSize "14px" -FontSizeActive "16px" -TextColor "black" -TextColorActive "blue" -FontWeight "normal" -FontWeightActive "bold" -FontStyle "normal" -FontStyleActive "italic" -FontVariant "normal" -FontVariantActive "small-caps" -FontFamily "Arial" -FontFamilyActive "Verdana" -TextDecoration "none" -TextDecorationActive "underline" -BackgroundColor "#f0f0f0" -BackgroundColorActive "#e0e0e0" -BackgroundColorActiveTarget "#d0d0d0" -BorderRadius "5px" -TextTransform "uppercase" -TextTransformActive "lowercase" -SlimTabs -Transition -LinearGradient -RemoveShadow -BorderStyle "solid" -BorderColor "gray" -BorderBottomWidth "1px" -BorderBottomStyle "solid" -BorderBottomColor "gray" -BorderBottomWidthActive "2px" -BorderBottomStyleActive "dashed" -BorderBottomColorActive "blue" -Style "custom" -Align "center" -Wrap "wrap" -Direction "row"
Creates a new HTML tab style with specified options.
```

### Example 2

```powershell
New-HTMLTabStyle -FontSize "12px" -FontSizeActive "14px" -TextColor "gray" -TextColorActive "black" -FontWeight "bold" -FontWeightActive "bolder" -FontStyle "italic" -FontStyleActive "oblique" -FontVariant "small-caps" -FontVariantActive "normal" -FontFamily "Verdana" -FontFamilyActive "Arial" -TextDecoration "underline" -TextDecorationActive "none" -BackgroundColor "#e0e0e0" -BackgroundColorActive "#f0f0f0" -BackgroundColorActiveTarget "#d0d0d0" -BorderRadius "10px" -TextTransform "capitalize" -TextTransformActive "uppercase" -SlimTabs -Transition -LinearGradient -RemoveShadow -BorderStyle "dotted" -BorderColor "black" -BorderBottomWidth "2px" -BorderBottomStyle "dashed" -BorderBottomColor "blue" -BorderBottomWidthActive "1px" -BorderBottomStyleActive "solid" -BorderBottomColorActive "gray" -Style "default" -Align "left" -Wrap "nowrap" -Direction "column"
Creates another HTML tab style with different options.
```

## Parameters

**-Align String optionalaliases: AlignTabs**

Specifies the alignment of the tabs.

Possible values: `left`, `right`, `center`, `justify`

**-AlignContent String optional**

Possible values: `flex-start`, `flex-end`, `center`, `space-between`, `space-around`, `stretch`

**-AlignItems String optional**

Possible values: `stretch`, `flex-start`, `flex-end`, `center`, `baseline`

**-BackgroundColor String optionalsets: Manual**

Specifies the background color for the tabs.

**-BackgroundColorActive String optionalaliases: SelectorColorsets: Manual**

Specifies the background color for the active tab.

**-BackgroundColorActiveTarget String optionalaliases: SelectorColorTargetsets: Manual**

Specifies the background color for the active tab target.

**-BorderBottomColor String optionalsets: Manual**

Specifies the bottom border color for the tabs.

**-BorderBottomColorActive String optionalsets: Manual**

Specifies the bottom border color for the active tab.

**-BorderBottomStyle String optionalsets: Manual**

Specifies the bottom border style for the tabs.

Possible values: `hidden`, `dotted`, `dashed`, `solid`, `double`, `groove`, `ridge`, `inset`, `outset`

**-BorderBottomStyleActive String optionalsets: Manual**

Specifies the bottom border style for the active tab.

Possible values: `hidden`, `dotted`, `dashed`, `solid`, `double`, `groove`, `ridge`, `inset`, `outset`

**-BorderBottomWidth String optionalsets: Manual**

Specifies the bottom border width for the tabs.

Possible values: `medium`, `thin`, `thick`

**-BorderBottomWidthActive String optionalsets: Manual**

Specifies the bottom border width for the active tab.

Possible values: `medium`, `thin`, `thick`

**-BorderColor String optionalsets: Manual**

Specifies the border color for the tabs.

**-BorderRadius String optionalsets: Manual**

Specifies the border radius for the tabs.

Possible values: `0px`, `5px`, `10px`, `15px`, `20px`, `25px`

**-BorderStyle String optionalsets: Manual**

Specifies the border style for the tabs.

Possible values: `hidden`, `dotted`, `dashed`, `solid`, `double`, `groove`, `ridge`, `inset`, `outset`

**-Direction String optional**

Specifies the direction of the tabs.

Possible values: `row`, `row-reverse`, `column`, `column-reverse`

**-FontFamily String optionalsets: Manual**

Specifies the font family for the tabs.

**-FontFamilyActive String optionalsets: Manual**

Specifies the font family for the active tab.

**-FontSize String optionalaliases: TextSizesets: Manual**

Specifies the font size for the tabs.

**-FontSizeActive String optionalaliases: TextSizeActivesets: Manual**

Specifies the font size for the active tab.

**-FontStyle String optionalsets: Manual**

Specifies the font style for the tabs.

Possible values: `normal`, `italic`, `oblique`

**-FontStyleActive String optionalsets: Manual**

Specifies the font style for the active tab.

Possible values: `normal`, `italic`, `oblique`

**-FontVariant String optionalsets: Manual**

Specifies the font variant for the tabs.

Possible values: `normal`, `small-caps`

**-FontVariantActive String optionalsets: Manual**

Specifies the font variant for the active tab.

Possible values: `normal`, `small-caps`

**-FontWeight String optionalsets: Manual**

Specifies the font weight for the tabs.

Possible values: `normal`, `bold`, `bolder`, `lighter`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`

**-FontWeightActive String optionalsets: Manual**

Specifies the font weight for the active tab.

Possible values: `normal`, `bold`, `bolder`, `lighter`, `100`, `200`, `300`, `400`, `500`, `600`, `700`, `800`, `900`

**-JustifyContent String optional**

Possible values: `flex-start`, `flex-end`, `center`

**-LinearGradient SwitchParameter optionalsets: Manual**

Indicates whether to use linear gradients.

**-RemoveShadow SwitchParameter optionalsets: Manual**

Indicates whether to remove shadows.

**-RowElements Int32 optional**

**-SlimTabs SwitchParameter optionalsets: Manual**

Indicates whether to use slim tabs.

**-TextColor String optionalsets: Manual**

Specifies the text color for the tabs.

**-TextColorActive String optionalsets: Manual**

Specifies the text color for the active tab.

**-TextDecoration String optionalsets: Manual**

Specifies the text decoration for the tabs.

Possible values: `line-through`, `overline`, `underline`

**-TextDecorationActive String optionalsets: Manual**

Specifies the text decoration for the active tab.

Possible values: `line-through`, `overline`, `underline`

**-TextTransform String optionalsets: Manual**

Specifies the text transformation for the tabs.

Possible values: `uppercase`, `lowercase`, `capitalize`

**-TextTransformActive String optionalsets: Manual**

Specifies the text transformation for the active tab.

Possible values: `uppercase`, `lowercase`, `capitalize`

**-Transition SwitchParameter optionalsets: Manual**

Indicates whether to apply transitions.

**-Wrap String optional**

Specifies the wrapping behavior of the tabs.

Possible values: `wrap`, `nowrap`, `wrap-reverse`

**-Style String optionalsets: Styled**

Specifies a custom style for the tabs.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:D28C3C2D5C2F9BDD87EDF1322E0F86BAA9FF0B215AB1083D0C0123E46F9D1B0B -->
