You can use margin: 0 auto
, but at first you have to use iframe (iframe
is inline element by default) a block element.
iframe
{
display: block;
width: yourWidth; // place your width here
height: yourHeight; // place your height here
margin: 0 auto;
}
// Thanks for edit suggestion goes to @webeno (comments in css)