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

Styling problem.

5 Answers 207 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Jonny
Top achievements
Rank 1
Jonny asked on 16 Jul 2012, 09:23 AM
I've taken the example off http://demos.kendoui.com/web/datepicker/index.html an as you can see from the attached screenshot the background is all messed up.

I'm using it from a Asp.net MVC 3 point of view.

Can any one help?
  

5 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 16 Jul 2012, 12:23 PM
Hello Ben,

I am not sure what causes this styling issue in your application. Could you please provide a sample project that could be examined in details? This way I will be able to observe the problem and advice you further. Thank you in advance. 
 
Greetings,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jonny
Top achievements
Rank 1
answered on 16 Jul 2012, 01:19 PM
Please find attached.

I think it something to do with site.css but I have no idea which part.

Thanks for the help.
0
Iliana Dyankova
Telerik team
answered on 19 Jul 2012, 08:01 AM
Hello Ben,

Thank you for sending your project. I examined it and it seems the problem is caused by the following styling in the Site.css file: 

#register-content label, input, select, textarea
{
  display: block;
  width: 200px;
  float: left;
}
Such selector sets this styling to the label of the element with "id = register-content" and all input, select, textarea elements in the project - this breaks the design of the DatePicker. In order to remove the issue you should not float the input element from which the DatePicker is initialized. 

On a side note, if you want to style the aforementioned html elements only in the element with "id = register-content" the needed selector is:
#register-content label, #register-content input, #register-content select, #register-content textarea
{
  display: block;
  width: 200px;
  float: left;
}
 
I hope this helps.

Greetings,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Jonny
Top achievements
Rank 1
answered on 19 Jul 2012, 10:53 AM
Thanks for you help, it has solved my issue
0
srinivas
Top achievements
Rank 1
answered on 20 Nov 2012, 10:12 AM
Hi,

In the demo given for the listview. In the <style scoped> tag you guys are defining the .product and some other classes which are defined in the demo. Can i give the .product styling in the site.css file. So that i can use the same classes in all of my listviews. Or there will be
 any other methods to do the styling. 


Regards,
Srinivas
Tags
Date/Time Pickers
Asked by
Jonny
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Jonny
Top achievements
Rank 1
srinivas
Top achievements
Rank 1
Share this question
or