John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

to get a header button text to show in two rows and shrink its width?

WHen i have long text (at least 2 words) in a button in the header or footer, it just expands in one row and overtakes the Caption. How can i make the text in 2 rows and shrink the width of the button?

Image

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

to get a header button text to show in two rows and shrink its width?

ohh, also, how can i make the Caption in two rows as well if i have a long text(s)?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

to get a header button text to show in two rows and shrink its width?

Hello John,

You can use CSS. Set button "Class Name". Add CSS style:
code
.buttonClassName {
white-space: normal;
width: 50px;
}
/code

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

to get a header button text to show in two rows and shrink its width?

Igor, i just tried this code and all this code does is fix the width. WHats the code to fix the with and wrap the remaining text on a 2nd line?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

to get a header button text to show in two rows and shrink its width?

Try the following CSS:
code.buttonClassName {
width: 30%;
}
.buttonClassName .ui-btn-inner{
white-space: normal;
}/code

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

to get a header button text to show in two rows and shrink its width?

well, it did place the text on 2 rows, however it overlapped the header. Is it possible to make the header bigger and fit it inside the header (centered with all items centered)

Image

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

to get a header button text to show in two rows and shrink its width?

Hello,

Set "Class Name" for header. Then add css:

code
.className {
height:20px;
}
/code

Return to “Issues”