You are viewing limited content. For full access, please sign in.

Question

Question

Dynamic Font Size for Form Title

asked on June 1, 2017

Is there a way to dynamically change the font size of a form title so it doesn't take up so much real estate when opened in the mobile app, but still has a larger font when viewed from a computer or printed?

0 0

Replies

replied on June 4, 2017

You can use custom CSS like this:

@media screen and (max-width:640px), handheld and (max-width:640px), tv and (max-width:640px), projection and (max-width:640px) {
  #form-title-wrap h1 {font-size: 10px;}
}

 

3 0
replied on June 1, 2017

Hi Alon,

 

you can use javascript for that.

But sorry, I dont know the function ; I cant help you.

 

Regards

1 0
replied on June 5, 2017

Thanks Rui!  I'll try that.  O noticed some of the  @media values for media types have been deprecated, so I wonder if it will work?  https://www.w3schools.com/cssref/css3_pr_mediaquery.asp

0 0
replied on June 5, 2017

Never noticed that; I guess @media screen and (max-width:640px) would be enough for now.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.