# Making the Wizard Stepper Stick to the Top of the Page

## Environment

| Property | Value                  |
| -------- | ---------------------- |
| Product  | Wizard for ASP.NET MVC |
| Version  | 2023.3.1114            |

## Description

I want to make the stepper in the Wizard for ASP.NET MVC component stick to the top of the page when scrolling, as some forms can be quite long.

## Solution

To achieve this, follow these steps:

1. Add an empty `<span>` element with a unique ID above the Wizard component:

```html
<span id="customWrapper"></span>
```

2. In the JavaScript code, detach the stepper element and append it to the empty `<span>` element:

```javascript
$(document).ready(function () {
    var stepper = $('.k-stepper').detach();
    $("#customWrapper").append(stepper);
    $('.k-stepper').data("kendoStepper").setOptions({});
});
```

3. Apply CSS to make the custom `<span>` element sticky and visible at the top:

```css
#customWrapper {
    position: sticky;
    top: 0;
    z-index: 100;
}
```

4. (Optional) If you want to add a background color to the stepper, use the `.k-stepper` CSS class selector:

```css
.k-stepper {
    background-color: green;
}
```

## More ASP.NET MVC TextBox Resources

* [REPL example for the approach above with HtmlHelper](https://netcorerepl.telerik.com/QeYovAFb10D2Gvrm14)

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

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

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

* [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 Wizard for ASP.NET MVC](https://docs.telerik.com/kendo-ui/api/ui/wizard)

* [Server-Side API Reference of the Wizard for ASP.NET MVC](https://docs.telerik.com/aspnet-mvc/api/wizard)

* [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)
