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

Text position

1 Answer 54 Views
Button
This is a migrated thread and some comments may be shown as answers.
Michel
Top achievements
Rank 1
Michel asked on 02 Mar 2017, 02:02 PM

Hi,

Is there away when using an image to put the text below the image.

Regards

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 06 Mar 2017, 08:01 AM
Hello Michel,

The most straightforward approach would be to add a <br /> tag to the content after the image, e.g. (based on this demo):

@(Html.Kendo().Button()
    .Name("imageButton")
    .HtmlAttributes( new {type = "button"} )
    .ImageUrl(Url.Content("~/Content/shared/icons/sports/snowboarding.png"))
    .Content("<br />Image icon"))

I hope this helps.

Regards,
Dimiter Topalov
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Button
Asked by
Michel
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or