Page 1 of 1

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

Posted: Mon May 27, 2013 11:56 pm
by John Herdean

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


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

Posted: Mon May 27, 2013 11:58 pm
by John Herdean

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


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

Posted: Tue May 28, 2013 12:14 am
by Igor

Hello John,

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


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

Posted: Fri May 31, 2013 6:38 pm
by John Herdean

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?


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

Posted: Fri May 31, 2013 8:10 pm
by Maryna Brodina

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


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

Posted: Fri May 31, 2013 8:38 pm
by John Herdean

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


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

Posted: Mon Jun 03, 2013 12:34 am
by Igor

Hello,

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

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