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

Vertical Alignment of Dropdown list & Date/Time pickers

2 Answers 670 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Vivek
Top achievements
Rank 1
Vivek asked on 04 Feb 2012, 09:40 AM
When placed in a line, there's a noticeable difference in the vertical alignment of the dropdown list and date/time pickers when compared to text-boxes.(please see the attached file)

I suspect this can be fixed by changing the height or padding of the text box which appear to be slightly too bulky.

How can I resolve this?

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 06 Feb 2012, 11:00 AM
Hi Vivek,

You can apply a vertical-align style (e.g. "middle") to the Add button and the regular textboxes in order to achieve better alignment.

The regular textboxes are higher than the DatePicker, which can be resolved by applying a suitable vertical padding. Note that the padding styles are cyurrently set in em's, which make them depend on the font-size. You can reset them in pixels if you want.

input.k-textbox
{
      padding-top: ...... ;
      padding-bottom: ...... ;
}

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
Vivek
Top achievements
Rank 1
answered on 10 Feb 2012, 04:04 AM
Thanks! I'll try it out.
Tags
DropDownList
Asked by
Vivek
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Vivek
Top achievements
Rank 1
Share this question
or