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

the Size of Upload File Icon

3 Answers 13 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Tisa
Top achievements
Rank 1
Tisa asked on 15 Jan 2021, 09:14 AM

I want to resize the size of Upload File icon, but not work even I change it to attachment icon, still have space around the icon. Can any one teach me how to do it. Thanks.

 

thank you very much!!!

3 Answers, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 19 Jan 2021, 02:31 PM

Hello Tisa,

If you are using our attachment font icon, you can increase its size through CSS, as shown below:

.k-upload .k-i-attachment-45 {
  font-size: 20px;
}

As for the space around the Upload's select button, it can be removed by setting the padding of the element with class .k-dropzone:

.k-upload .k-dropzone {
  padding: 0px;
}

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Tisa
Top achievements
Rank 1
answered on 20 Jan 2021, 06:27 AM

Hi Ivan,

 

Thanks for your reply, but the layout seems not change after i add your code. Can you correct me if i am wrong.

Please see my attachment , i want to remove orange area. Is it possible?

Thanks.

 

0
Ivan Danchev
Telerik team
answered on 22 Jan 2021, 06:18 PM

Hi Tisa,

The orange area is the actual button that allows you to select a file. Removing it completely would mean to remove the button altogether, thus losing the option to select files. Instead you can make it smaller. The CSS rules below result in the Upload appearing as in the attached image:

<style> 
  .k-upload .k-i-attachment-45 {
    font-size: 20px;
  }
  
  .k-upload,
  .k-upload .k-dropzone {
    padding: 0px;
    height: 25px;
    width: 25px;
  }
  
  .k-upload .k-upload-button {
    min-width: 25px;
    width: 25px;
    height: 25px;
  }
</style>

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Upload
Asked by
Tisa
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Tisa
Top achievements
Rank 1
Share this question
or