pritu patel
Posts: 0
Joined: Tue Jan 21, 2014 6:24 am

toast message font size

I used following code in js file for toast message
I want small font-size in toast message.
I tried using text-size and font-size But it not working.
Is there any solution for change size for toast message???

var toast = function(msg){
$(""+msg+"")
.css({ display: "block",
opacity: 0.90,
position: "fixed",
padding: "7px",
"text-align": "center",
width:"270px",
left: ($(window).width() - 284)/2,
top: $(window).height()/2 })
.appendTo( $.mobile.pageContainer ).delay( 2500 )
.fadeOut( 100, function(){
$(this).remove();
});
};

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

toast message font size

Hello! Could you clarify where and how did you set font-size? Please post and example. To insert code use < code tag.

pritu patel
Posts: 0
Joined: Tue Jan 21, 2014 6:24 am

toast message font size

in this code font-size not working.I want here code to change font-size.
Image

In this image there is a big font-size so I want to set as small font.
Image

pritu patel
Posts: 0
Joined: Tue Jan 21, 2014 6:24 am

toast message font size

in a toast messaga you can see that there is a very big size font.

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

toast message font size

You can add class to h3 tag in code and describe this class in CSS asset or you can add for tag corresponding classes. Instead pre$("<div class='ui-loader ui-overlay-shadow ui-body-a ui-corner-all'><h3>"+msg+"</h3><>")/pre use pre$("<div class='ui-loader ui-overlay-shadow ui-body-a ui-corner-all'><h3 style='font-size:10px'>"+msg+"</h3><>")/pre

Abhijeet Singh
Posts: 0
Joined: Thu May 08, 2014 5:54 pm

toast message font size

hey pritu could you please mail be the backup of the app with toast plugin, i've tried and failed to add this functionality before. Please mail it to me at - a href="mailto:abhijeet.bulls23@gmail.com" rel="nofollow"abhijeet.bulls23@gmail.com/a

Martand
Posts: 0
Joined: Tue Jul 05, 2016 5:40 pm

toast message font size

Hi Pritu/Maryna/Abhijeet,

Please mail me the backup of toast plugin app as i am not able to find the zip when clicked on backup link. Its pointing back to Appery io docs.
EMail : a href="mailto:martandkulkarni.9999@gmail.com" rel="nofollow"martandkulkarni.9999@gmail.com/a.

Thanks in advance :)

Return to “Issues”