How to change the font family in an iframe?

by giovanny.lueilwitz , in category: Javascript , 3 months ago

How to change the font family in an iframe?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by mac , 3 months ago

@giovanny.lueilwitz 

To change the font family in an iframe, you can add a CSS code inside the iframe tag. Here is an example:

1
<iframe src="yourURL" style="font-family: Arial, sans-serif;"></iframe>


In this example, the font family of the text inside the iframe will be changed to Arial. You can replace "Arial" with any other font family that you want to use.