Fixed dimensions like width="704" do not scale well on mobile viewports. To make an embedded video component fluid and responsive, wrap it inside a container helper using CSS aspect ratios: Use code with caution.
.iframe-container iframe position: absolute; top: 0; left: 0; width: 100%; height: 100%;
<iframe src="http://www.youjizz.com/videos/embed/205618" frameborder="0" width="704" height="550" scrolling="no" sandbox="allow-scripts allow-same-origin" allowtransparency="true" ></iframe> Fixed dimensions like width="704" do not scale well
<iframe src="http://www.youjizz.com/videos/embed/205618" frameborder="0" width="704" height="550" scrolling="no" allowtransparency="true"></iframe>
I need to make sure my response is balanced. If they're asking about how to implement it, I can explain the technical aspects but also the potential consequences. If they're reporting malicious activity, I should advise them on the risks. If they're asking about how to implement it,
<div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%;"> <iframe src="http://www.youjizz.com/videos/embed/205618" frameborder="0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" scrolling="no" sandbox="allow-scripts allow-same-origin" ></iframe> </div>
Let's break down the attributes used:
Decoding the Iframe Embed Code: A Complete Guide to HTML Inline Frames
Fixed widths (like 704px) don't always look great on mobile phones. Developers often use CSS to make iframes "responsive" so they shrink or grow based on the user's screen size. Developers often use CSS to make iframes "responsive"
For educational purposes, here's a cleaned-up and more secure version of your iframe, assuming you're embedding from a trusted source and complying with all relevant laws:
Here's a step-by-step guide to embedding a YouJizz video: