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
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/.
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/.