From 938fbb420b5cc1dc771b6d8a3e68782a036f6e47 Mon Sep 17 00:00:00 2001 From: KB Bot Date: Thu, 22 Feb 2024 13:31:01 +0000 Subject: [PATCH] Added new kb article create-spacing-between-checkboxlist-items-horizontal-direction --- ...checkboxlist-items-horizontal-direction.md | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 knowledge-base/create-spacing-between-checkboxlist-items-horizontal-direction.md diff --git a/knowledge-base/create-spacing-between-checkboxlist-items-horizontal-direction.md b/knowledge-base/create-spacing-between-checkboxlist-items-horizontal-direction.md new file mode 100644 index 000000000..07749dc81 --- /dev/null +++ b/knowledge-base/create-spacing-between-checkboxlist-items-horizontal-direction.md @@ -0,0 +1,43 @@ +--- +title: Creating Spacing Between CheckBoxList Items in Horizontal Direction +description: Learn how to create spacing between items in a RadCheckBoxList when using the Horizontal direction. +type: how-to +page_title: How to Create Spacing Between CheckBoxList Items in Horizontal Direction +slug: create-spacing-between-checkboxlist-items-horizontal-direction +tags: checkboxlist, spacing, horizontal, items, css +res_type: kb +--- + +## Environment + +| Product | RadCheckBox for ASP.NET AJAX | +|---------------------|-----------------------------| +| Version | all | + +## Description + +When using the RadCheckBoxList control with the Horizontal direction, you may want to create spacing between the items. By default, the items are displayed without any spacing. This article will guide you through the steps to achieve the desired spacing. + +## Solution + +To create spacing between the items in a RadCheckBoxList with the Horizontal direction, follow these steps: + +1. Apply the following CSS class to the RadCheckBoxList control: + +```css +.rbHorizontalList .RadButton, .rbColumnList { + padding: 0 10px 0 10px; +} +``` + +This CSS class adds a padding of 10 pixels on both sides of each item in the RadCheckBoxList, creating the desired spacing. + +That's it! The spacing between the items in the RadCheckBoxList should now be visible when using the Horizontal direction. + +## Notes + +- You can adjust the value of the padding property in the CSS class to increase or decrease the spacing between the items as needed. + +## See Also + +- [RadCheckBoxList Documentation](https://docs.telerik.com/devtools/aspnet-ajax/controls/checkboxlist/overview)