I have a div element enclosing an iframe, and I am trying to always position it in the center. Here is my attempt on jsfiddle: jsfiddle
I truly believe that someone could help because I am certain that it is something simple but I just can't figure it out.
Here is the HTML code:
<div id="top-element">Some div with greater width than the inner div</div>
<div id="iframe-wrapper">
<iframe src="http://www.apple.com/" scrolling="auto"></iframe>
</div>