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

Icons not vertically centred in buttons

3 Answers 127 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 01 Mar 2016, 05:41 PM

The problem is summarized in the attached.  Many of the buttons icons look this way, with the icon flush to the top of the parent container instead of vertically centred.

I'm including the following CSS files and nothing else: (form the 2016 Q1 Release).  How can I fix this?

    <link rel="stylesheet" href="/CSS/Kendo/kendo.common.min.css" />
    <link rel="stylesheet" href="/CSS/Kendo/kendo.metro.min.css" />

3 Answers, 1 is accepted

Sort by
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 02 Mar 2016, 07:41 PM
Hello Jay,

After some investigating, I was able to reproduce your issue.  

Please take a look at this Telerik Dojo reproducing the icons placement.  
The reason why it is appearing that way is because <!DOCTYPE html> is missing.

Here is an updated sample which shows the correct placement of the icons.

Please let me know if this helps.  If it does not, please create a Dojo or update the 2nd example with the icon behavior.

Regards,
Patrick
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jay
Top achievements
Rank 1
answered on 08 Mar 2016, 02:02 PM

Thank you Patrick for the reply.

We were using an older DOCTYPE tag:

- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

After changing to just 

<!DOCTYPE html>

The issue was resolved.

0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 09 Mar 2016, 06:58 PM
Hi Jay,

Glad everything worked out.  

Regards,
Patrick
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Jay
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Jay
Top achievements
Rank 1
Share this question
or