This is a migrated thread and some comments may be shown as answers.

Purpose of .k-Content .k-group and another styles?

1 Answer 1085 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 19 Aug 2013, 02:42 PM
Could someone please explain the purpose of .k-content .k-group and other styles that are listed in the kendo documentation? I apply them to my div's and content within the div, yet i see no styling change at all!  What am i missing here?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 21 Aug 2013, 08:27 AM
Hello Jim,

The usage of the most common Kendo UI CSS classes is outlined at:

http://docs.kendoui.com/getting-started/web/appearance-styling

Depending on the exact context and theme, a given CSS class may apply different styles. This means that a given CSS class may or may not produce a visible effect when used outside a Kendo UI widget.

Specifically .k-content applies border-color, background-color and color styles, depending on the theme.

.k-group applies border-color and background-color styles, and box-shadow when inside a Menu widget.

Both classes apply border-style, border-width, width, height, margin, padding, position etc, depending on the context (widget).

Note that an applied border color style does not automatically produce a border, unless a border-style is also defined. This is defined for cases when a Kendo UI CSS class is used inside a Kendo UI widget, but not necessarily when used outside a Kendo UI widget.

Theme-related styles are located in the theme CSS file, while context-related styles are located in the common CSS file.

For more information, I recommend looking inside the Kendo UI CSS files and / or inspecting the HTML markup with Firebug or a similar tool.

Let me know if you need specific additional details.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Jim
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or