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

[Solved] How do I get the PanelBarItem Image to display on the right?

1 Answer 103 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eric
Top achievements
Rank 1
Veteran
Iron
Eric asked on 16 Jul 2012, 06:26 PM
The non-MVC versions of the PanelBarItem seem to have an ImagePosition property, but I do not see one for MVC.  I would like the image to display on the right side of the text.  What is the recommended way to do this?  Thank you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 19 Jul 2012, 10:47 AM
Hi Eric,

The PanelBar images are normally floated to the left:

.t-panelbar .t-image,
.t-panelbar .t-sprite
{
    float: left;
    margin-right: 5px;
    margin-top: 4px;
    vertical-align: middle;
}


You need to simply override the above CSS rule and float them to the right.


ul.t-panelbar .t-image,
ul.t-panelbar .t-sprite
{
    float: right;
}


Regards,
Dimo
the Telerik team
Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.
Tags
PanelBar
Asked by
Eric
Top achievements
Rank 1
Veteran
Iron
Answers by
Dimo
Telerik team
Share this question
or