NavBarStyles.Link Property
Gets the style settings, defining the common appearance of navbar links.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
#Property Value
Type | Description |
---|---|
Link |
A Link |
#Remarks
The Link
property provides access to the style settings that define the appearance of all links within a navbar. Using the settings available via the Link
property, you can specify the style for the normal, hovered and visited states of links.
Note
This property is not in effect when used within the Nav
The code sample below illustrates how to underline links when they are hovered.
<style type="text/css">
#myNavBar a:hover
{
text-decoration: underline;
}
</style>
@Html.DevExpress().NavBar(settings =>
{
settings.Name = "myNavBar";
...
}).GetHtml()