![Solved: 1 Year, 4 Weeks ago Solved: 1 Year, 4 Weeks ago](https://community.mybb.com/images/mysupport_solved.png)
![This user has been denied support. This user has been denied support.](https://community.mybb.com/images/mysupport_no_support.gif)
(2023-12-19, 07:31 AM)Joey_Pham423 Wrote: try adding this css to your global.css or wherever you want:
iframe { width: 100%; max-width: 800px; /*this can be anything you wish, to show, as default size*/ aspect-ratio: 16/9; /*important to keep the aspect ratio*/ }
Remove the width and height option in your Regular Expression
\[iframe\](.*?)\[/iframe\]
Change your replacement to just accepting the url
Play around with the css to your liking. Let me know if this works for you<iframe src="$1" allowfullscreen></iframe>
Please note that the content inside the iframe also has to be responsive as well
code on global.php gives error