From cda95cc71943ee078f2f6754eba189d6d0699773 Mon Sep 17 00:00:00 2001 From: shuttlehawk Date: Fri, 24 May 2024 15:40:07 -0500 Subject: [PATCH] Update grid-add-a-custom-button-in-toolbar.md The button can't float right because the k-toolbar class display is set to flex. I propose using margin-left: auto. --- .../knowledge-base/grid-add-a-custom-button-in-toolbar.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs-aspnet/knowledge-base/grid-add-a-custom-button-in-toolbar.md b/docs-aspnet/knowledge-base/grid-add-a-custom-button-in-toolbar.md index 3c600ae3b58..37531cbbfba 100644 --- a/docs-aspnet/knowledge-base/grid-add-a-custom-button-in-toolbar.md +++ b/docs-aspnet/knowledge-base/grid-add-a-custom-button-in-toolbar.md @@ -40,7 +40,7 @@ To add a custom button: .ToolBar(e => { e.Pdf(); e.Excel(); - e.Custom().Text("Instructions").HtmlAttributes(new { id = "customButton", @class="floatRight" }); + e.Custom().Text("Instructions").HtmlAttributes(new { id = "customButton", @class="flexAlignRight" }); }) ``` @@ -58,8 +58,8 @@ To add a custom button: 1. Finally, add some style to right align the {{ site.product }} Button. ```css - .floatRight { - float: right; + .flexAlignRight { + margin-left: auto; } ```