Jump to content
  • 0

Change Font Size in iFrame?


AccessNerd

Question

Hi All,

When I display a report result set directly on a data page, the font size what I'm expecting based on my localization. However when I embed the result set's html page in an iFrame within another data page with the same localization, the Font size increases. How can I force the font to be a particular size in an iFrame since adjusting the localization doesn't seem to help in this case? See image below as an example. 

CaspioResultIframeFontSize.JPG

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hello @AccessNerd,

The font size in the iFrame changes since the browser treats it as the smallest breakpoint and increases the font size as it does for tablets/mobile phones.

As an option, the iFrame can be resized by defining a style attribute and width:100%. You may check the article: Remove iFrame Border and Change Size

Another way, is to change font size in Styles for tablet/mobile screens. Go to Styles -> Source -> All -> find .cbResultSetData class -> change font size

image.png

Hope this helps!

Link to comment
Share on other sites

  • 0
On 5/26/2021 at 3:51 AM, sandy159 said:

Hello @AccessNerd,

The font size in the iFrame changes since the browser treats it as the smallest breakpoint and increases the font size as it does for tablets/mobile phones.

As an option, the iFrame can be resized by defining a style attribute and width:100%. You may check the article: Remove iFrame Border and Change Size

Another way, is to change font size in Styles for tablet/mobile screens. Go to Styles -> Source -> All -> find .cbResultSetData class -> change font size

image.png

Hope this helps!

Thanks @sandy159

 

Thanks. For some reason I couldn't get the style attribute to work within the iframe tag, but I was able to get redefine the mobile and tablet font sizes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...