New to Telerik UI for ASP.NET Core? Download free 30-day trial

Appearance

The Menu renders as a <ul> element and expands horizontally by default.

If a horizontal Menu is wider than the total width of its root items, a blank space will remain visible on the right. To remove this space, use the CSS rules from the following example.

#menu-id /* For a specific Menu instance. */
,
.k-menu-horizontal /* For all horizontal Menus. */
{
   display: inline-block;
}

In left-to-right layouts, shrinking the horizontal Menu will cause the border of the last root item to touch the right border of the Menu. The following example demonstrates how to remove the last item border.

#menu-id > .k-last /* For a specific Menu instance. */
,
.k-menu-horizontal > .k-last /* For all horizontal Menus. */
{
   border-width: 0;
}

Rendering

As of Telerik UI for ASP.NET Core R1 2022, the Menu component uses updated rendering.

The text and the expand arrow are now wrapped in new separate containers.

Old Rendering:

<span class="k-link k-menu-link">
    Products
    <span class="k-menu-expand-arrow k-icon k-i-arrow-60-down"></span>
</span>

New Rendering:

<span class="k-link k-menu-link">
    <span class="k-menu-link-text">Hover</span>
    <span class="k-menu-expand-arrow">
        <span class="k-icon k-i-arrow-s"></span>
    </span>
</span>

Additionally, the Menu groups receive a new size class:

Old Rendering:

<ul class="k-group k-menu-group k-popup k-reset">
    ...
</ul>

New Rendering:

<ul class="k-group k-menu-group k-reset k-menu-group-md">
     ... 
</ul>

See Also

In this article