Skip to content

Commit 4337900

Browse files
committed
Add media queries info in Kendo UI and responsive web article
1 parent 579b1f5 commit 4337900

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

using-kendo-in-responsive-web-pages.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Each Kendo UI widget has a `resize()` method, which can be used to trigger a lay
7777
The widget `resize` method accepts a single boolean parameter, which defines whether the widget should execute its layout adjustment algorithm
7878
even if the widget's dimensions have not changed ("force" mode).
7979

80-
### Example: using widget `resize()`
80+
#### Example: using widget `resize()`
8181

8282
var gridWidget = $("#GridID").data("kendoGrid");
8383

@@ -88,4 +88,18 @@ even if the widget's dimensions have not changed ("force" mode).
8888
// force layout readjustment without setting a new height
8989
gridWidget.resize(true);
9090

91-
The code above uses a `wrapper` field, which is documented in the [Widget wrapper and widget element](/framework/widgets/wrapper-element) page.
91+
The code above uses a `wrapper` field, which is documented in the [Widget wrapper and widget element](/framework/widgets/wrapper-element) page.
92+
93+
## Kendo UI and media queries
94+
95+
Kendo UI uses media queries to enhance the behavior of Kendo UI widgets on different form factors. Media queries, a part of the [CSS3 specification](http://www.w3.org/TR/css3-mediaqueries/), load different set of styles to different devices, delivering improved and unified end user experience.
96+
97+
#### CSS media query example:
98+
99+
@media only screen and (max-width: 480px) {
100+
h2 {
101+
font-size: 14pt;
102+
}
103+
}
104+
105+
Kendo UI responsive styles use the Non-Mobile First Method with media queries having max-width breakpoints. Max-width refers to every window or device with width or screen-width of less than or equal to the amount given. That said, styles written e.g. under 480px breakpoint will override the base styles on screens of max-width equal to 480px or less.

0 commit comments

Comments
 (0)