We want to allow members to embed iFrame based Videos into their discussions.
So when they attach a Video they can see a thumbnail of it next to the discussion window.
But the iFrame based Video keeps breaking out of the containing DIV.
You can see the page, Under development, here:
So if you click on attach Photo buttons, you will see that Photo thumbnails uploaded will fit within their containing DIV. However, if you click on the Video embed button and embed an iframe based Video, say from YouTube with typical dims of: width=“853” height=“480”
you will see that it does NOT fit within the containing DIV and will break out.
So what is the CSS that would force the Video, no matter what its iFrame based width & height to fit within the container DIV?
What if I don’t want to spend time, if I had, doing that, but could answer your question if you linked to an example you already set up to show the matter?
It probably will if you preceed the code with three backticks on a line by themselves and succeed the code with three more backticks (after the code) on a line by themselves.
OR
Highlight your block of code and click the </> button in the menu.
The code setup seems to be completely wrong with too many things to correct but the main reason the iframe is bigger than the container is because you have given it a greater width and height than its parent.
So we adopted your code suggestion with some changes.
And it is working fine. Thanks.
Question: what is the point of: <meta name="viewport" content="width=device-width,height=device-height,initial-scale=1">
I removed it. But just curious!
Thanks
As a matter of interest, is there any particular reason for you
ignoring the private message that I sent you on Sept 23rd
regarding this thread of yours?..
Yes, our Web Site is not currently Mobile friendly, aka done based on Responsive Design.
FYI, given the massive Scope of this Site and associated services, given that it is the integration of a Search engine & Social network, and limited resources we have given that we are non-profit, we ave not spend any resources to make the Site based on Responsive Design. But it is on the todo list.
And I did not get your PM! Or dont know where PMs go