# Sticky Tab in the TabStrip

## Environment

<table>
 <tr>
  <td>Product</td>
  <td>Grid for Progress® Telerik® UI for ASP.NET MVC</td>
 </tr>
</table>

## Description

How can I make the first tab of the TabStrip sticky? It must remain always visible when I scroll the tabs.

## Solution

Use the HtmlAttributes configuration option, to set a custom class (`always-visible` in the example below) to the first tab. Then use the class as a selector in a CSS rule that customizes the default positioning of the tab.

```Razor View
<div class="container" style="width: 400px">
	@(Html.Kendo().TabStrip()
		.Name("tabstrip")
		.Scrollable(true)
		.Items(items =>
		{
			items.Add().Text("Sticky tab").HtmlAttributes(new { @class = "always-visible" })
					.Content(@<text>
						<p>Tab 1 content...</p>
					</text>);

			items.Add().Text("Tab 2")
					.Content(@<text>
						<p>Tab 2 content...</p>
					</text>);

			items.Add().Text("Tab 3")
					.Content(@<text>
						<p>Tab 3 content...</p>
					</text>);

			items.Add().Text("Tab 4")
					.Content(@<text>
						<p>Tab 4 content...</p>
					</text>);

			items.Add().Text("Tab 5")
					.Content(@<text>
						<p>Tab 5 content...</p>
					</text>);

		})
	)
</div>

<style>
	.always-visible {
		position: sticky !important;
		left: 0 !important;
		background-color: white;
		z-index: 22000;
	}
</style>
```

## More ASP.NET MVC TabStrip Resources

* [ASP.NET MVC TabStrip Documentation](https://www.telerik.com/aspnet-mvc/documentation/html-helpers/navigation/tabstrip/overview)

* [ASP.NET MVC TabStrip Demos](https://demos.telerik.com/aspnet-mvc/tabstrip)

* [ASP.NET MVC TabStrip Product Page](https://www.telerik.com/aspnet-mvc/tabstrip)

* [Telerik UI for ASP.NET MVC Video Onboarding Course (Free for trial users and license holders)](https://www.telerik.com/aspnet-mvc/documentation/getting-started/video-onboarding)

* [Telerik UI for ASP.NET MVC Forums](https://www.telerik.com/forums/aspnet-mvc)

## See Also

* [Client-Side API Reference of the TabStrip for ASP.NET MVC](https://docs.telerik.com/kendo-ui/api/ui/tabstrip)
* [Server-Side API Reference of the TabStrip for ASP.NET MVC](https://docs.telerik.com/aspnet-mvc/api/tabstrip)
* [Telerik UI for ASP.NET MVC Breaking Changes](https://www.telerik.com/aspnet-mvc/documentation/backwards-compatibility/2023-backwards-compatibility)
* [Telerik UI for ASP.NET MVC Knowledge Base](https://docs.telerik.com/aspnet-mvc/knowledge-base)
