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

Word wrap a RibbonBarButton text

5 Answers 173 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Remco
Top achievements
Rank 1
Remco asked on 07 Dec 2011, 09:47 AM
Hello,

Some of our RadRibbonbuttons have a text like 'Send direct e-mail'. This looks very odd in the RibbonBar, see image.
Is there a property or workaround to Word Wrap a RibbonBarButton text?  

Kind Regards,
Remco

5 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 07 Dec 2011, 04:45 PM
Hi Remco,

Try the following CSS rule:

div.RadRibbonBar div.rrbButtonGroup .rrbButtonOut .rrbTextContent {
    white-space:normal
}

Hope this helps Regards,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Remco
Top achievements
Rank 1
answered on 07 Dec 2011, 05:02 PM
Thanks Bozhidar,

When I add this CSS rule to the page and set the button width, the text is nicely word wrapped. 

Regards, Remco
0
Thomas
Top achievements
Rank 1
answered on 13 Sep 2012, 08:09 AM
The Button Text is wrapped, but the wrapped text in the 1st and 2nd line isn't centered. Is it possible to do that?

Thanks.

/Thomas
0
Shinu
Top achievements
Rank 2
answered on 13 Sep 2012, 08:54 AM
Hi Thomas,

Try overriding the default CSS as follows to align the text in the center.

CSS:
<style type="text/css">
        div.RadRibbonBar div.rrbButtonGroup .rrbButtonOut .rrbTextContent
        {
            white-space: normal !important;
            text-align:center !important;
        }
</style>

Hope this helps.

Regards,
Shinu.
0
Thomas
Top achievements
Rank 1
answered on 14 Sep 2012, 08:26 AM
Works perfect - thanks! :)

/Thomas
Tags
RibbonBar
Asked by
Remco
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Remco
Top achievements
Rank 1
Thomas
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Share this question
or