I am creating a webpage that uses an autogenerated html file from the python library Bokeh. I use the library to export an html file and then use an iframe to display the information.
I cannot figure out any way to center the contents of this iframe.
My attempted CSS code looks something like this:
div.box {
display: block;
margin:auto;
}
iframe.d {
border: none;
width: 100%;
display:block;
}
With a body that looks like:
<div class = 'box'>
<iframe class = 'd' src='graphs.html' id = 'beautifulgraphs' onload='autoResize("beautifulgraphs")'></iframe>
</div>
But I hope you can view the plunker below to see the problem in action.
Here is a plunker link to my HTML: Plunker HTML
I have attached instructions on how to see the issue on the plunker readme but please preview the code and then use the small blue button to pop out the preview to full screen mode. It will then become apparent that the centering is not working.
I have attempted the suggestions on this link already to no success.