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

align text vertical-middle

1 Answer 63 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Rizwan
Top achievements
Rank 1
Rizwan asked on 21 Aug 2009, 01:30 PM
Hi
   If you go to sample
http://demos.telerik.com/aspnet-ajax/panelbar/examples/functionality/scrolling/defaultcs.aspx

and have a close look at panel bar text  i-e "Win Forms Controls" then you will find that it is not vertically aligned in middle.  The space left below text is more then the space available above text. My Guess is its 2 px on top and 5 px left at bottom and between that is the text.

Is there any way to align it properly ?


Best Regards
Rizwan Bashir

1 Answer, 1 is accepted

Sort by
0
Accepted
Alex Gyoshev
Telerik team
answered on 21 Aug 2009, 02:39 PM
Hello Rizwan,

You could use the following styles in order to push the text a bit down:
div.RadPanelBar .rpText {
    line-height: 22px;
    padding-top: 2px;
}

You could play with the values, as long as you keep their sum 24px.

Greetings,
Alex
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
PanelBar
Asked by
Rizwan
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or