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

Why is k-block class set up with a specific width and height?

2 Answers 225 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 16 Jul 2012, 10:27 PM
k-block appears to be the core class for creating a kendo styled panel.  Looks great, but it has a default width/height of 200 x 100 px. 
Is there a reason for this? 

Seems like whoever uses it will always have to override these defaults to get the sizing they desire unless it is the unlikely scenario that they want their panel to be this size.  Why not just eliminate the width/height and let the element to which the style is applied size in it's default manner?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 17 Jul 2012, 01:48 PM
Hello Eric,

k-block is a CSS class that is not used by our widgets, but in some of the online demos. Its purpose is to be a styled container with a random purpose. The width and height are default ones and can be easily overridden, according to your needs. Indeed, we can remove them from the Kendo UI base CSS.

Regards,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Eric
Top achievements
Rank 1
answered on 20 Jul 2012, 03:54 AM
Yes, thanks Dimo, I know it can be overridden, but it did fluster me for a bit because the boxes kept coming out this strange size.  Then I fired up FireBug understood why when I saw the applied styles.  Just want to prevent somebody else from spending time trying to figure out why the boxes are sizing oddly by default.  Thanks for providing these and the other reusable styles, they make it a lot easier to style my site consistently.

Thanks!
Eric
Tags
General Discussions
Asked by
Eric
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Eric
Top achievements
Rank 1
Share this question
or