How to break words in an iframe?

Member

by adan , in category: HTML & CSS , 3 months ago

How to break words in an iframe?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by ryan.murray , a month ago

@adan 

To break words in an iframe, you can use CSS to apply word-break and word-wrap properties. Here's an example of how you can break words in an iframe:


In the CSS file or style tag:

1
2
3
4
iframe {
    word-break: break-word;
    word-wrap: break-word;
}


This CSS code will make sure that words are broken properly within the iframe, preventing them from overflowing outside the iframe boundaries. You can add this CSS code to your website's main stylesheet or include it within the specific page where the iframe is embedded.