Example Code:
<blockquote class="imgur-embed-pub" lang="en" data-id="a/" data-context="false"><a href="//imgur.com/a/">View post on imgur.com</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
Example Code:
<blockquote class="imgur-embed-pub" lang="en" data-id="a/" data-context="false"><a href="//imgur.com/a/">View post on imgur.com</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
To what are you trying to add height and width?
The above code, are you able define a specific width and height to a Javascript code like you do with an I frame code? Does it work the same way?
Example Code: Updated.
<blockquote class="imgur-embed-pub" lang="en" data-id="a/vQCbX"><a href="//imgur.com/a/vQCbX">View post on imgur.com</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
An iframe is an HTML element.
You can apply width and height to the containing element for your JavaScript. Depending on the script and what it displays, you may be able to adjust the dimensions within the script itself, if they are set there.
What if they are not set, as with the above code I think, are you able to set a width and height to it?
When you go to Embed Album, that’s the code they give you.
As I said, you can try adjusting the size of the containing element. Whether or not the content will scale correctly, I don’t know. Try it and see.
If you’re using a third-party script, you may just have to accept their settings.
How would I go about adjusting the containing element? How do you do that?
You add width and height to it, preferably in CSS, but inline styles will work if you insist on doing it that way.
Can you show me both inline and CSS.
I still would like to know if it’s possible to set a fixed width and height, and how I would do it.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.