Is there a way to embed html in an iframe?

I have a html file — an interactive chart — that I’d like to embed in a post. When I upload the file I see a placeholder thumbnail but not the image itself, and copying the HTML seems to generate an iframe, see below, but doesn’t seem to work in a post.

<iframe width="950" height="650" src="/files/chart.html" frameborder="0"> </iframe>

Any tips? Thanks

I’ve had another strange HTML issue:
the design of my email signature is displaying as different on micro.blog render (see comparison screenshots identifying where the surprising extra vertical height is coming from).
Any ideas any web devs?

interesting! so actually… the iframe code i copied isn’t actually being generated on the uploads page, but was actually already on the clipboard from me testing the old site :confused: So, the files/ path is incorrect, but the clarification is that there isn’t any content actually being copied. And clicking on the asset doesn’t open the html, it tries and fails to load some seemingly arbitrarily-named jpg.

interesting, thanks for the comments.

I was actually able to get it to load (testing - misc.) but only by referencing the file located at a url outside of micro.blog: here’s the iframe that ended up working;

<iframe width="600" height="300" src="https://davidtingle.com/files/nhl_chart.html" frameborder="0"> </iframe>

So there’s no issue loading / rendering the html - it works just fine. But I can’t get the upload to work.

1 Like

Please do pal, I’ve managed to avoid learning CSS so would appreciate it!

1 Like

Thanks for identifying. Do you know how I can fix? I currently just use vanilla (Typewriter) theme (with dark mode plugin obv).
Happy to dip toe into customizing (at some point I need to learn to, in order to add a SimpleAnalytics tracking script (like the Plausible plugin).